heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

Add `m_decompose()`, which gets the position/rotation/scale from a world matrix #67

Open heyx3 opened 12 months ago

heyx3 commented 12 months ago

Reference here: https://math.stackexchange.com/questions/237369/given-this-transformation-matrix-how-do-i-decompose-it-into-translation-rotati

Provide overloads for both 4D matrices (for 3D space) and 3D matrices (for 2D space).