mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-29 01:09: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
11
libs/citro3d/source/maths/mtx_multiplyfvec3.c
Normal file
11
libs/citro3d/source/maths/mtx_multiplyfvec3.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <c3d/maths.h>
|
||||
|
||||
C3D_FVec Mtx_MultiplyFVec3(const C3D_Mtx* mtx, C3D_FVec v)
|
||||
{
|
||||
// http://www.wolframalpha.com/input/?i={{a,b,c},{d,e,f},{g,h,i}}{x,y,z}
|
||||
float x = FVec3_Dot(mtx->r[0], v);
|
||||
float y = FVec3_Dot(mtx->r[1], v);
|
||||
float z = FVec3_Dot(mtx->r[2], v);
|
||||
|
||||
return FVec3_New(x, y, z);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue