computeXYAreaMoments MethodStatic
Return moment sums for a loop, parity region, or union region.
- The input region should lie in a plane parallel to the xy-plane, as z-coords are ignored (assumed to be zero).
- The caller can convert the return value
rawMomentDatato principal axes and moments withprincipalMomentData = MomentData.inertiaProductsToPrincipalAxes(rawMomentData.origin, rawMomentData.sums); rawMomentData.originis the centroid ofregion.rawMomentData.sums.weight()is the signed area ofregion.
computeXYAreaMoments(region: AnyRegion): MomentData | undefined
| Parameter | Type | Description |
|---|---|---|
| region | AnyRegion | any Loop, ParityRegion, or UnionRegion. |
Returns - MomentData | undefined
Defined in
- curve/RegionOps.ts Line 140
Last Updated: 02 June, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.