addSecondMomentAreaProducts MethodStatic

Accumulate to the matrix of area products of a polygon with respect to an origin.

  • The polygon is assumed to be planar and non-self-intersecting.
  • Accumulated values are integrals over triangles from point 0 of the polygon to other edges of the polygon.
  • Integral over each triangle is transformed to integrals from the given origin.

addSecondMomentAreaProducts(points: IndexedXYZCollection, origin: Point3d, moments: Matrix4d): void

Parameter Type Description
points IndexedXYZCollection array of points around the polygon. Final closure point is not needed.
origin Point3d origin for global accumulation.
moments Matrix4d 4x4 matrix where products are accumulated.

Returns - void

Defined in

Last Updated: 14 November, 2024