mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
add new matrix mat4x2
Initial function being glm_mat4x2_make Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
@@ -268,4 +268,17 @@ typedef union CGLM_ALIGN_MAT mat4s {
|
||||
#endif
|
||||
} mat4s;
|
||||
|
||||
typedef union mat4x2s {
|
||||
mat4x2 raw;
|
||||
vec2s col[4]; /* [col (4), row (2)] */
|
||||
#if CGLM_USE_ANONYMOUS_STRUCT
|
||||
struct {
|
||||
float m00, m01;
|
||||
float m10, m11;
|
||||
float m21, m22;
|
||||
float m31, m32;
|
||||
};
|
||||
#endif
|
||||
} mat4x2s;
|
||||
|
||||
#endif /* cglm_types_struct_h */
|
||||
|
||||
Reference in New Issue
Block a user