Point2dArray Class

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

Methods

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

Defined in

Last Updated: 17 December, 2024