UtilitiesFunctionsgetRotatedBoxPointsVersion: NextgetRotatedBoxPoints CallablegetRotatedBoxPoints(center: Point2D, halfWidth: number, halfHeight: number, rotation: number): Point2D[]Returns eight sampled points around a rotated box. The returned points include the four corners and four edge midpoints, rotated about the supplied center.Parameterscenter: Point2DBox center point.halfWidth: numberHalf of the unrotated box width.halfHeight: numberHalf of the unrotated box height.rotation: numberRotation angle in radians.Returns Point2D[]Rotated corner and edge-midpoint coordinates.
Returns eight sampled points around a rotated box.
The returned points include the four corners and four edge midpoints, rotated about the supplied center.