Perimeter, area and visualization of a plane figure
Dr. Yury Zavarovsky
Penza branch of the Financial University
under the Government of the Russian Federation
Procedure 1. Perimeter of a plane figure
Procedure 2. Area of a plane figure
The third procedure shows this figure. To paint the interior of the boundary polyline approximation is used. Required parameters: L - a list of all segments of the border and C - the color of the interior of the figure in the format color = color of the figure. Optional parameters: N - the number of parts for the approximation of each segment (default N = 100) and Boundary is defined by a list for special design of the figure's border (the default border is drawed by a thin black line). The border of the figure can be drawn separately without filling the interior by the global variable Border.
Examples of working
Example 1
Example 2
Example 3
Example 4
Example 5 is more complicated .
3 circles on the plane C1, C2 and C3 defined by the parametric equations of their borders. We want to find the perimeter, area, and paint the figure C3 minus (C1 union C2) .
Example 5