poly_fun: Helper function to calculate a polygon by given number of...

Description Usage Arguments Value

Description

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)]

Usage

1
poly_fun(nSides, area)

Arguments

nSides

number of sides

area

the area of the polygon

Value

A list with the x and y coordinates


nardusstricta/soilprofile2 documentation built on May 23, 2019, 6:04 p.m.