Point2dArray Class

The Point2dArray class contains static methods that act on arrays of 2d points.

Methods

Name Description
clonePoint2dArray(data: Point2d[]): Point2d[] Static Return an array containing clones of the Point3d data[]  
isAlmostEqual(dataA: undefined | Point2d[], dataB: undefined | Point2d[]): boolean Static Return true if arrays have same length and matching coordinates.  
pointCountExcludingTrailingWraparound(data: XAndY[]): number Static Return the number of points when trailing points that match point 0 are excluded.  

Defined in

Last Updated: 20 September, 2019