Description Usage Arguments Value
This function builds polygons with given area and number of sides. The starting point is one of the corner points of the polygon. The area (A) of a convex polygon can be found with the following formula A = 1/2 * [(x1*y2 + x2*y3 + ... + xn*y1) - (y1*x2 + y2*x3 + ... + yn*x1)]
1 | poly_fun(nSides, area)
|
nSides |
number of sides |
area |
the area of the polygon |
A list with the x and y coordinates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.