Functions related to sets of Cartesian points
Methods
(static) ptCentroid(points, mode)
Finds the central point (avg.) between the given points
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
points |
Array.<number> | x and y coordinates | |
mode |
string | 3d | '3d' (default) or '2d' |
Returns:
central point (avg.) between the given points