Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes

./

perimeter.pro

Routines

result = perimeter(x, y)

Compute the perimeter of a polygon defined by a set of x/y points

test_perimeter

Routine details

topperimeter

result = perimeter(x, y)

Compute the perimeter of a polygon defined by a set of x/y points

Return value

Perimeter defined by connecting x/y pairs. The perimeter includes the line segment from the last x/y pair to the first x/y pair.

METHOD SUMMARY: The length of the line segment connecting each x/y pair is computed using the pythagorean theorem in double precision. Lengths are summed.

Parameters

x in required

List of x points

y in required

List of y points

toptest_perimeter

test_perimeter

File attributes

Modifcation date: Tue May 15 13:50:44 2012
Lines: 59