mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-28 08:49:30 +00:00
Updated all the libs, added citro3d, added ctr.swkbd (WIP, untested)
This commit is contained in:
parent
68a44645f7
commit
49c87e5526
97 changed files with 7341 additions and 944 deletions
12
libs/citro3d/source/maths/mtx_multiplyfvec4.c
Normal file
12
libs/citro3d/source/maths/mtx_multiplyfvec4.c
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include <c3d/maths.h>
|
||||
|
||||
C3D_FVec Mtx_MultiplyFVec4(const C3D_Mtx* mtx, C3D_FVec v)
|
||||
{
|
||||
// http://www.wolframalpha.com/input/?i={{a,b,c,d},{e,f,g,h},{i,j,k,l},{m,n,o,p}}{x,y,z,w}
|
||||
float x = FVec4_Dot(mtx->r[0], v);
|
||||
float y = FVec4_Dot(mtx->r[1], v);
|
||||
float z = FVec4_Dot(mtx->r[2], v);
|
||||
float w = FVec4_Dot(mtx->r[3], v);
|
||||
|
||||
return FVec4_New(x, y, z, w);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue