accumulateTriangleToLineStringMomentsXY Method
compute moments of triangles from a base point to the given linestring. Accumulate them to this.sums.
- If pointAis undefined, usethis.originas pointA.
- If this.needOriginis set, the first point of the array is captured as local origin for subsequent sums.
accumulateTriangleToLineStringMomentsXY(sweepBase: Readonly<WritableXAndY>, points: GrowableXYZArray): void
| Parameter | Type | Description | 
|---|---|---|
| sweepBase | Readonly<WritableXAndY> | |
| points | GrowableXYZArray | 
Returns - void
Defined in
- geometry4d/MomentData.ts Line 365
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.