EditTransformRotation
This function transforms a 3D vector from one space to another.
Syntax
- Vec3 TransformRotation(Vec3 v, Mat4 src, Mat4 dst)
- Vec3 TransformRotation(number x, number y, number z, Mat4 src, Mat4 dst)
- Vec3 TransformRotation(Vec3 rotation, Entity src, Entity dst)
- Vec3 TransformRotation(number x, number y, number z, Entity src, Entity dst)
- Quat TransformRotation(Quat rotation, Mat4 src, Mat4 dst)
- Quat TransformRotation(Quat rotation, Entity src, Entity dst)
| Parameter |
Description |
| rotation, (x, y, z) |
Euler or quaternion rotation to transform |
| src |
source 4x4 matrix or entity |
| dst |
destination 4x4 matrix or entity |
Returns
Returns the transformed rotation.