13.14.7 The perimeter of a polygon: perimeter
See also arcLen, Section 6.19.2.
The perimeter command finds the length of a circle, circular
arc or polygon.
-
perimeter takes one argument:
C, a circle, circular arc or a polygon.
- perimeter(C) returns the perimeter of the object.
Examples.
-
Input:
perimeter(circle(0,1))
Output:
- Input:
perimeter(circle(0,1,pi/4,pi))
Output:
- Input:
perimeter(arc(0,pi/4,pi))
Output:
- Input:
perimeter(triangle(0,1,i))
Output:
- Input:
perimeter(square(0,2))
Output:
The perimeter command has perimeterat and
perimeteratraw versions (see Section 13.14.1).