See also arcLen, Section 13.3.8.
The perimeter command finds the length of a circle, circular arc or polygon.
perimeter(circle(0,1)) |
|
perimeter(circle(0,1,pi/4,pi)) |
|
perimeter(arc(0,pi/4,pi)) |
|
perimeter(triangle(0,1,i)) |
|
perimeter(square(0,2)) |
|
The perimeter command has perimeterat and perimeteratraw versions (see Section 26.13.1).