40 const float c3 = glm::cos(rotation.z);
41 const float s3 = glm::sin(rotation.z);
42 const float c2 = glm::cos(rotation.x);
43 const float s2 = glm::sin(rotation.x);
44 const float c1 = glm::cos(rotation.y);
45 const float s1 = glm::sin(rotation.y);
46 const glm::vec3 invScale = 1.0F / scale;
50 invScale.x * (c1 * c3 + s1 * s2 * s3),
51 invScale.x * (c2 * s3),
52 invScale.x * (c1 * s2 * s3 - c3 * s1)
55 invScale.y * (c3 * s1 * s2 - c1 * s3),
56 invScale.y * (c2 * c3),
57 invScale.y * (c1 * c3 * s2 + s1 * s3)
60 invScale.z * (c2 * s1),
62 invScale.z * (c1 * c2)