mirror of
https://github.com/recp/cglm.git
synced 2025-10-03 16:51:35 +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];
|
||||
}
|
||||
|
||||
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 */
|
||||
|
Reference in New Issue
Block a user