mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 09:08:53 +00:00
add option to scale with single val
This commit is contained in:
@@ -90,4 +90,12 @@ glm_scale_self(mat4 m, vec3 v) {
|
|||||||
m[2][2] *= v[2];
|
m[2][2] *= v[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGLM_INLINE
|
||||||
|
void
|
||||||
|
glm_scale1_self(mat4 m, float s) {
|
||||||
|
m[0][0] *= s;
|
||||||
|
m[1][1] *= s;
|
||||||
|
m[2][2] *= s;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* cglm_affine_h */
|
#endif /* cglm_affine_h */
|
||||||
|
Reference in New Issue
Block a user