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