accumulateTriangleToLineStringMomentsXY Method

Compute moments of triangles from a base point to the given linestring. Accumulate them to this.sums.

  • If this.needOrigin is set, this.origin is set to the first point of the array.
  • If sweepBase is undefined, use this.origin as sweepBase.

accumulateTriangleToLineStringMomentsXY(sweepBase: Readonly<WritableXAndY>, points: GrowableXYZArray): void

Parameter Type Description
sweepBase Readonly<WritableXAndY>  
points GrowableXYZArray  

Returns - void

Defined in

Last Updated: 24 June, 2025