computeXYArea MethodStatic
Return an xy area 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);
computeXYArea(root: AnyRegion): undefined | number
Parameter | Type | Description |
---|---|---|
root | AnyRegion | any Loop, ParityRegion, or UnionRegion. |
Returns - undefined | number
Defined in
- curve/RegionOps.ts Line 112
Last Updated: 20 June, 2023