EditTransformRotation
This function transforms a 3D vector from one space to another.
Syntax
- Vec3 TransformRotation(const Vec3& v, const Mat4& src, const Mat4& dst)
- Vec3 TransformRotation(const float x, const float y, const float z, const Mat4& src, const Mat4& dst)
- Vec3 TransformRotation(const Vec3& rotation, shared_ptr<Entity> src, shared_ptr<Entity> dst)
- Vec3 TransformRotation(const float x, const float y, const float z, shared_ptr<Entity> src, shared_ptr<Entity> dst)
- Quat TransformRotation(const Quat& rotation, const Mat4& src, const Mat4& dst)
- Quat TransformRotation(const Quat& rotation, shared_ptr<Entity> src, shared_ptr<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.