Skip to main content

Function: rotatePoints()

rotatePoints(rotationMatrix, origin, points): number[]

Rotates an array of points around a given origin using a rotation matrix

Parameters

rotationMatrix: number[]

Array of 9 numbers representing the rotation matrix

origin: number[]

Array of 3 numbers representing the rotation origin [x,y,z]

points: number[]

Array of points in format [x1,y1,z1,x2,y2,z2,...]

Returns

number[]

Array of rotated points in the same format as input

Throws

If any input array is invalid

Defined in

tools/src/utilities/geometricSurfaceUtils.ts:183