computeXYAreaMoments MethodStatic
Return moment sums for a loop, parity region, or union region.
- If
rawMomentData
is the MomentData returned by computeXYAreaMoments, convert to principal axes and moments with callprincipalMomentData = MomentData.inertiaProductsToPrincipalAxes (rawMomentData.origin, rawMomentData.sums);
computeXYAreaMoments(root: AnyRegion): undefined | MomentData
Parameter | Type | Description |
---|---|---|
root | AnyRegion | any Loop, ParityRegion, or UnionRegion. |
Returns - undefined | MomentData
Defined in
- curve/RegionOps.ts Line 93
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.