daily update on 20230829 by nitload youmu
This commit is contained in:
@@ -99,7 +99,7 @@ typedef struct matrix3map
|
||||
{
|
||||
__m128 colum[3];
|
||||
float m[4][3];
|
||||
};
|
||||
}matrix3map;
|
||||
|
||||
typedef union matrix4map {
|
||||
__m128 colum[4];
|
||||
@@ -118,10 +118,9 @@ typedef struct matrix4 {
|
||||
|
||||
#pragma region mat2
|
||||
|
||||
SSGC_API __inline matrix2map* __cdecl add_mat2(matrix2map* mat1, matrix2map* mat2);
|
||||
SSGC_API __inline matrix2map* __cdecl sub_mat2(matrix2map* mat1, matrix2map* mat2);
|
||||
|
||||
SSGC_API __inline void __cdecl transmpose2to4(matrix2map* source, matrix4map* target);
|
||||
SSGC_API _inline void __cdecl transpose2to3(matrix2map* source, matrix3map* target);
|
||||
SSGC_API _inline void __cdecl transpose2to4(matrix2map* source, matrix4map* target);
|
||||
|
||||
SSGC_API _inline void __cdecl deinit_mat2(matrix2map* mat);
|
||||
|
||||
@@ -130,6 +129,11 @@ SSGC_API _inline void __cdecl deinit_mat2(matrix2map* mat);
|
||||
|
||||
#pragma region mat3
|
||||
|
||||
|
||||
SSGC_API __inline void _cdecl transpose3to2(matrix3map* source, matrix2map* target);
|
||||
SSGC_API __inline void _cdecl transpose3to3(matrix3map* source, matrix3map* target);
|
||||
SSGC_API __inline void _cdecl transpose3to4(matrix3map* source, matrix4map* target);
|
||||
|
||||
SSGC_API __inline float det_mat3_internal(__m128 const c1, __m128 const c2, __m128 const c3);
|
||||
|
||||
#pragma endregion
|
||||
@@ -140,15 +144,11 @@ SSGC_API __inline float det_mat3_internal(__m128 const c1, __m128 const c2, __m1
|
||||
#pragma region mat4
|
||||
//type and function for 4 colum matrix
|
||||
|
||||
SSGC_API __inline matrix4map* __cdecl add_mat4(matrix4map* mat1, matrix4map* mat2);
|
||||
SSGC_API __inline matrix4map* __cdecl sub_mat4(matrix4map* mat1, matrix4map* mat2);
|
||||
SSGC_API __inline matrix4map* __cdecl mul_const(matrix4map* mat, float value);
|
||||
SSGC_API __inline matrix4* __cdecl mul_4_4(matrix4map* left, matrix4map* right);
|
||||
|
||||
SSGC_API __inline void __cdecl transpose4to2(matrix4map* source, matrix4map* target);
|
||||
SSGC_API __inline void __cdecl transpose4to4(matrix4map* matrix, matrix4map* target);
|
||||
|
||||
SSGC_API __inline float __cdecl det_mat4(matrix4* matPtr);
|
||||
SSGC_API __inline float __cdecl det_mat4(matrix4map* matPtr, matrix4map* transpose);
|
||||
|
||||
SSGC_API __inline void __cdecl deinit_mat4(matrix4map* matPtr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user