Spectre/Math: Adding Vector2UnProject()
This commit is contained in:
parent
813c0dab17
commit
416a71f744
2 changed files with 16 additions and 0 deletions
|
|
@ -2,6 +2,8 @@
|
|||
#ifndef SPECTRE_MATH_MATH_H
|
||||
#define SPECTRE_MATH_MATH_H
|
||||
|
||||
#include "Transform.h"
|
||||
#include "Vector4.h"
|
||||
#include "Vector3.h"
|
||||
#include "Vector2.h"
|
||||
#include "Matrix4.h"
|
||||
|
|
@ -32,6 +34,9 @@ namespace sp { namespace math
|
|||
float bottom, float top,
|
||||
float zNear = -1.0f, float zFar = 1.0f);
|
||||
|
||||
//
|
||||
Vector2f Vector2UnProject(Vector2f point, Transform InverseMVP, Vector4u screen);
|
||||
|
||||
// Create a 2D rotation matrix. (rotation around Z-axis)
|
||||
Matrix4f rotation(float theta);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue