mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
matrix functions
most matrix functions are converted over, no benefit to converting over the project/ortho because they would be scalar anyway but may need to move them regardless.
This commit is contained in:
parent
67f12311d4
commit
bc3145bc55
21 changed files with 1881 additions and 136 deletions
|
|
@ -8,7 +8,16 @@ namespace math_backend::mat44::dispatch
|
|||
struct Mat44Funcs
|
||||
{
|
||||
void (*transpose)(float*) = nullptr;
|
||||
void (*inverse)(float*) = nullptr;
|
||||
void (*affine_inverse)(float*) = nullptr;
|
||||
void (*normalize)(float*) = nullptr;
|
||||
void (*mul_mat44)(const float* a, const float* b, float* r) = nullptr;
|
||||
void (*mul_pos3)(const float* a, const float* b, float* r) = nullptr;
|
||||
void (*mul_vec3)(const float* a, const float* b, float* r) = nullptr;
|
||||
void (*mul_float4)(const float* a, const float* b, float* r) = nullptr;
|
||||
float (*determinant)(const float*) = nullptr;
|
||||
void (*scale)(float*, const float*) = nullptr;
|
||||
void (*get_scale)(const float*, float*) = nullptr;
|
||||
};
|
||||
|
||||
// Global dispatch table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue