Dav1dde / gl3n

OpenGL Maths for D (not glm for D).
http://dav1dde.github.com/gl3n/
Other
103 stars 49 forks source link

Matrix decomposition #73

Closed SrMordred closed 6 years ago

SrMordred commented 8 years ago

There is no way to do decomposition on gl3n , right? Like on glm: glm::decompose(transformation, scale, rotation, translation, skew, perspective);

Dav1dde commented 8 years ago

There is mat.get_{translation, scale, rotation}, they simply return the relevant parts of the Matrix, e.g get_rotation returns the upper left 3x3 Matrix, nothing else.