generateArcPoints

generateArcPoints()
generateArcPoints(axis: Point3, angle: number, center: Point3, startOffset: Point3, segmentCount: number): Point3[]

Returns an array of evenly-distributed points that lie on an arc.

Parameters

axis: Point3

The normal of the plane containing the arc (in other words, the axis of rotation).

angle: number

The angle swept by the arc (may be negative).

center: Point3

The center point of the arc.

startOffset: Point3

The starting point of the arc, expressed as an offset relative to the center.

segmentCount: number

The number of line segments to be generated.

Returns: Point3[]

An array containing segmentCount + 1 points.