Merge branch 'master' into feature/mat3x4

This commit is contained in:
Recep Aslantas
2023-07-16 23:31:33 +03:00
committed by GitHub
13 changed files with 19 additions and 19 deletions

View File

@@ -183,7 +183,7 @@ Functions documentation
Create mat2 matrix from pointer
| NOTE: **@src** must contain 4 elements.
| NOTE: **@src** must contain at least 4 elements.
Parameters:
| *[in]* **src** pointer to an array of floats

View File

@@ -11,7 +11,7 @@ Table of contents (click to go):
Macros:
1. GLM_MAT2X3_ZERO_INIT
#. GLM_MAT2x3_ZERO
#. GLM_MAT2X3_ZERO
Functions:

View File

@@ -11,7 +11,7 @@ Table of contents (click to go):
Macros:
1. GLM_MAT2X4_ZERO_INIT
#. GLM_MAT2x4_ZERO
#. GLM_MAT2X4_ZERO
Functions:

View File

@@ -193,7 +193,7 @@ Functions documentation
Create mat3 matrix from pointer
| NOTE: **@src** must contain 9 elements.
| NOTE: **@src** must contain at least 9 elements.
Parameters:
| *[in]* **src** pointer to an array of floats

View File

@@ -11,7 +11,7 @@ Table of contents (click to go):
Macros:
1. GLM_MAT3X2_ZERO_INIT
#. GLM_MAT3x2_ZERO
#. GLM_MAT3X2_ZERO
Functions:

View File

@@ -308,7 +308,7 @@ Functions documentation
Create mat4 matrix from pointer
| NOTE: **@src** must contain 16 elements.
| NOTE: **@src** must contain at least 16 elements.
Parameters:
| *[in]* **src** pointer to an array of floats

View File

@@ -27,7 +27,7 @@
CGLM_INLINE void glms_mat2_swap_col(mat2 mat, int col1, int col2)
CGLM_INLINE void glms_mat2_swap_row(mat2 mat, int row1, int row2)
CGLM_INLINE float glms_mat2_rmc(vec2 r, mat2 m, vec2 c)
CGLM_INLINE float glms_mat42_make(float * __restrict src);
CGLM_INLINE mat2s glms_mat2_make(float * __restrict src);
*/
#ifndef cglms_mat2_h
@@ -44,8 +44,8 @@
#define GLMS_MAT2_ZERO_INIT {GLM_MAT2_ZERO_INIT}
/* for C only */
#define GLMS_MAT2_IDENTITY ((mat3s)GLMS_MAT2_IDENTITY_INIT)
#define GLMS_MAT2_ZERO ((mat3s)GLMS_MAT2_ZERO_INIT)
#define GLMS_MAT2_IDENTITY ((mat2s)GLMS_MAT2_IDENTITY_INIT)
#define GLMS_MAT2_ZERO ((mat2s)GLMS_MAT2_ZERO_INIT)
/*!
* @brief make given matrix identity. It is identical with below,

View File

@@ -11,7 +11,7 @@
GLMS_MAT2X3_ZERO
Functions:
CGLM_INLINE float glms_mat2x3_make(float * __restrict src);
CGLM_INLINE mat2x3s glms_mat2x3_make(float * __restrict src);
*/
#ifndef cglms_mat2x3_h

View File

@@ -11,7 +11,7 @@
GLMS_MAT2X4_ZERO
Functions:
CGLM_INLINE float glms_mat2x4_make(float * __restrict src);
CGLM_INLINE mat2x4s glms_mat2x4_make(float * __restrict src);
*/
#ifndef cglms_mat2x4_h

View File

@@ -28,7 +28,7 @@
CGLM_INLINE mat3s glms_mat3_swap_col(mat3s mat, int col1, int col2);
CGLM_INLINE mat3s glms_mat3_swap_row(mat3s mat, int row1, int row2);
CGLM_INLINE float glms_mat3_rmc(vec3s r, mat3s m, vec3s c);
CGLM_INLINE float glms_mat3_make(float * __restrict src);
CGLM_INLINE mat3s glms_mat3_make(float * __restrict src);
*/
#ifndef cglms_mat3s_h

View File

@@ -42,7 +42,7 @@
CGLM_INLINE mat4s glms_mat4_swap_col(mat4s mat, int col1, int col2);
CGLM_INLINE mat4s glms_mat4_swap_row(mat4s mat, int row1, int row2);
CGLM_INLINE float glms_mat4_rmc(vec4s r, mat4s m, vec4s c);
CGLM_INLINE float glms_mat4_make(float * __restrict src);
CGLM_INLINE mat4s glms_mat4_make(float * __restrict src);
*/
#ifndef cglms_mat4s_h

View File

@@ -199,7 +199,7 @@ typedef union mat2s {
typedef union mat2x3s {
mat2x3 raw;
vec3s col[2]; /* col -> row | [row (2), col (3)] */
vec3s col[2]; /* [col (2), row (3)] */
#if CGLM_USE_ANONYMOUS_STRUCT
struct {
float m00, m01, m02;
@@ -210,7 +210,7 @@ typedef union mat2x3s {
typedef union mat2x4s {
mat2x4 raw;
vec4s col[2]; /* col -> row | [row (2), col (4)] */
vec4s col[2]; /* [col (2), row (4)] */
#if CGLM_USE_ANONYMOUS_STRUCT
struct {
float m00, m01, m02, m03;
@@ -233,7 +233,7 @@ typedef union mat3s {
typedef union mat3x2s {
mat3x2 raw;
vec2s col[3]; /* col -> row | [row (3), col (2)] */
vec2s col[3]; /* [col (3), row (2)] */
#if CGLM_USE_ANONYMOUS_STRUCT
struct {
float m00, m01;

View File

@@ -55,11 +55,11 @@ typedef float vec3[3];
typedef CGLM_ALIGN_IF(16) float vec4[4];
typedef vec4 versor; /* |x, y, z, w| -> w is the last */
typedef vec3 mat3[3];
typedef vec2 mat3x2[3]; /* [row (3), col (2)] */
typedef vec2 mat3x2[3]; /* [col (3), row (2)] */
typedef vec4 mat3x4[3]; /* [col (3), row (4)] */
typedef CGLM_ALIGN_IF(16) vec2 mat2[2];
typedef vec3 mat2x3[2]; /* [row (2), col (3)] */
typedef vec4 mat2x4[2]; /* [row (2), col (4)] */
typedef vec3 mat2x3[2]; /* [col (2), row (3)] */
typedef vec4 mat2x4[2]; /* [col (2), row (4)] */
typedef CGLM_ALIGN_MAT vec4 mat4[4];
/*