Projects a 3D vector from object space into screen space using the provided viewport and transformation matrix.
| 788 | |
| 789 | // Projects a 3D vector from object space into screen space using the provided viewport and transformation matrix. |
| 790 | static Vector3Base Project(const Vector3Base& vector, float x, float y, float width, float height, float minZ, float maxZ, const Matrix& worldViewProjection) |
| 791 | { |
| 792 | Vector3Base result; |
| 793 | Project(vector, x, y, width, height, minZ, maxZ, worldViewProjection, result); |
| 794 | return result; |
| 795 | } |
| 796 | |
| 797 | // Projects a 3D vector from screen space into object space using the provided viewport and transformation matrix. |
| 798 | static FLAXENGINE_API void Unproject(const Vector3Base& vector, float x, float y, float width, float height, float minZ, float maxZ, const Matrix& worldViewProjection, Vector3Base& result); |