accumulateTriangleToLineStringMomentsXY Method
Compute moments of triangles from a base point to the given linestring. Accumulate them to this.sums.
- If
this.needOriginis set,this.originis set to the first point of the array. - If
sweepBaseis undefined, usethis.originassweepBase.
accumulateTriangleToLineStringMomentsXY(sweepBase: Readonly<WritableXAndY>, points: GrowableXYZArray): void
| Parameter | Type | Description |
|---|---|---|
| sweepBase | Readonly<WritableXAndY> | |
| points | GrowableXYZArray |
Returns - void
Defined in
- geometry4d/MomentData.ts Line 368
Last Updated: 03 November, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.