Transform:rotate

Rotates the Transform using an angle/axis rotation.

transform = Transform:rotate(angle, ax, ay, az)

Arguments

NameTypeDescription
anglenumberThe number of radians to rotate around the axis of rotation.
axnumberThe x component of the axis of rotation.
aynumberThe y component of the axis of rotation.
aznumberThe z component of the axis of rotation.

Returns

NameTypeDescription
transformTransformThe original Transform.

See also