accumulateTriangleMomentsXY Method

Compute moments of a triangle from the origin. Accumulate them to this.sums.

  • If this.needOrigin is set, this.origin is set to pointB.
  • If pointA is undefined, use this.origin as pointA.

accumulateTriangleMomentsXY(pointA: Readonly<WritableXAndY>, pointB: XAndY, pointC: XAndY): void

Parameter Type Description
pointA Readonly<WritableXAndY>  
pointB XAndY  
pointC XAndY  

Returns - void

Defined in

Last Updated: 12 May, 2026