Given an anchor Pt, rebase all Pts in this group either to or from this anchor base.
a Group or array of Pt
an index for the Pt array, or an external Pt
"to" (subtract all Pt with this anchor base) or "from" (add all Pt from this anchor base)
Bound an angle between 0 to 360 degrees
Bound a radian between 0 to 2-PI
Generate a sine and cosine lookup table
an object with 2 tables (array of 360 values) and 2 functions to get sin/cos given a radian parameter. { sinTable:Float64Array, cosTable:Float64Array, sin:(rad)=>number, cos:(rad)=>number }
Shear a Pt or a Group of Pts in 2D space
a Pt or a Group of Pts
shearing value which can be a number or an array of 2 numbers
optional anchor point to shear from
optional axis such as "yz" to define a 2D plane of shearing
Generate a sine and cosine lookup table
an object with 2 tables (array of 360 values) and 2 functions to get sin/cos given a radian parameter. { sinTable:Float64Array, cosTable:Float64Array, sin:(rad)=>number, cos:(rad)=>number }
Sort the Pts so that their edges will form a non-overlapping polygon Ref: https://stackoverflow.com/questions/6989100/sort-points-in-clockwise-order
an array of Pts
Convert an angle in radian to degree
Convert an angle in degree to radian
Generated using TypeDoc
Geom class provides various helper functions for basic geometric operations