creates a matrix from a quaternion * The resulting matrix describes the same rotation as the quaternion, but does not have any translation (also like the quaternion). * * @name vmath.matrix4_quat * @param q [type:quaternion] quaternion to create matrix from * @return m [type:matrix4] matrix represented by quaternion * @examples * * ```lua * local vec =
| 1601 | * ``` |
| 1602 | */ |
| 1603 | static int Matrix4_Quat(lua_State* L) |
| 1604 | { |
| 1605 | PushMatrix4(L, Matrix4::rotation(*CheckQuat(L, 1))); |
| 1606 | return 1; |
| 1607 | } |
| 1608 | |
| 1609 | /*# creates a matrix from an axis and an angle |
| 1610 | * The resulting matrix describes a rotation around the axis by the specified angle. |
nothing calls this directly
no test coverage detected