mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Add love.graphics.transformPoint and love.graphics.inverseTransformPoint.
--HG-- branch : minor
This commit is contained in:
@@ -34,8 +34,14 @@ namespace love
|
||||
**/
|
||||
class Matrix4
|
||||
{
|
||||
private:
|
||||
|
||||
static void multiply(const Matrix4 &a, const Matrix4 &b, float t[16]);
|
||||
|
||||
public:
|
||||
|
||||
static void multiply(const Matrix4 &a, const Matrix4 &b, Matrix4 &result);
|
||||
|
||||
/**
|
||||
* Creates a new identity matrix.
|
||||
**/
|
||||
@@ -156,6 +162,8 @@ public:
|
||||
template <typename V>
|
||||
void transform(V *dst, const V *src, int size) const;
|
||||
|
||||
Matrix4 inverse() const;
|
||||
|
||||
/**
|
||||
* Creates a new orthographic projection matrix with depth in the range of
|
||||
* [-1, 1].
|
||||
|
||||
Reference in New Issue
Block a user