Builds a rotation about an axis that passes through a center point, as three matrices applied in order: move the center to the origin, rotate, move back. The angle is in degrees.
The angle in degrees, the axis direction and the center it passes through
The list of matrices to apply in order
Builds a rotation about a line parallel to the X axis through a center point, as three matrices applied in order: move the center to the origin, rotate, move back. The angle is in degrees.
The angle in degrees and the center
The list of matrices to apply in order
Builds a rotation about a line parallel to the Y axis through a center point, as three matrices applied in order: move the center to the origin, rotate, move back. The angle is in degrees.
The angle in degrees and the center
The list of matrices to apply in order
Builds a rotation about a line parallel to the Z axis through a center point, as three matrices applied in order: move the center to the origin, rotate, move back. The angle is in degrees.
The angle in degrees and the center
The list of matrices to apply in order
Builds a rotation from three angles about a center point: yaw turns about Y, pitch about X and roll about Z, in degrees. The result is three matrices applied in order: move the center to the origin, rotate, move back.
The yaw, pitch and roll in degrees and the center
The list of matrices to apply in order
Builds a scale with its own factor per axis, measured from a center point that stays in place, as three matrices applied in order: move the center to the origin, scale, move back.
The center and the factor for each axis
The list of matrices to apply in order
Builds a scale with its own factor per axis, measured from the origin; [2, 3, 1] doubles X,
triples Y and keeps Z.
The factor for each axis
A list with the one scale matrix
Builds a scale by the same factor on every axis, measured from the origin, so 2 makes everything twice as big and twice as far from the origin.
The factor
A list with the one scale matrix
Builds a scale by the same factor on every axis, measured from a center point that stays in place, as three matrices applied in order: move the center to the origin, scale, move back.
The factor and the center
The list of matrices to apply in order
Builds a move by a vector; [10, 5, 0] moves 10 along X, 5 along Y and nothing along Z.
The vector to move by
A list with the one translation matrix
Builds one move per vector, for transforming many objects each by its own vector, in the same order.
The vectors to move by
One transformation per vector, in the same order
Builds transformation matrices for moving, rotating and scaling geometry, using the BabylonJS math. A transformation is a 4x4 matrix as 16 numbers in column-major order; most methods return a short list of them that is applied in order, so a rotation about a point is a move to the origin, the rotation, and the move back. Angles are in degrees. The
transformsservice on the base package builds the same matrices without the engine.