EditTransformVector
This function transforms a 3D vector from one space to another.
Syntax
- Vec3 TransformVector(const Vec3& v, const Mat4& src, const Mat4& dst)
- Vec3 TransformVector(const float x, const float y, const float z, const Mat4& src, const Mat4& dst)
- Vec3 TransformVector(const Vec3& v, shared_ptr<Entity> src, shared_ptr<Entity> dst)
- Vec3 TransformVector(const float x, const float y, const float z, shared_ptr<Entity> src, shared_ptr<Entity> dst)
Parameter |
Description |
v, (x, y, z) |
3D vector to transform |
src |
source 4x4 matrix or entity |
dst |
destination 4x4 matrix or entity |
Returns
Returns the transformed vector.