Vec3:rotate

Edit

Applies a rotation to the vector, using a Quat or an angle/axis rotation.



Arguments

NameTypeDescription
qQuat The quaternion to apply.

Returns

NameTypeDescription
selfVec3 The modified vector.

Arguments

NameTypeDescription
anglenumber The number of radians to rotate.
axnumber The x component of the axis to rotate around.
aynumber The y component of the axis to rotate around.
aznumber The z component of the axis to rotate around.

Returns

NameTypeDescription
selfVec3 The modified vector.

See also