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 will be ignored.
- If
rawMomentData
is the MomentData returned by computeXYAreaMoments, convert to principal axes and moments with callprincipalMomentData = MomentData.inertiaProductsToPrincipalAxes(rawMomentData.origin, rawMomentData.sums);
rawMomentData.origin
is the centroid ofregion
.rawMomentData.sums.weight()
is the signed area ofregion
.
computeXYAreaMoments(region: AnyRegion): undefined | MomentData
Parameter | Type | Description |
---|---|---|
region | AnyRegion | any Loop, ParityRegion, or UnionRegion. |
Returns - undefined | MomentData
Defined in
- curve/RegionOps.ts Line 101
Last Updated: 07 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.