MCPcopy Create free account
hub / github.com/doldecomp/mkdd / DevMatrixByVector

Method DevMatrixByVector

src/Yamamoto/kartvec.cpp:416–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void KartMat::DevMatrixByVector(VecPtr out, VecPtr base, Mtx m)
417{
418 f32 x = m[0][0] * base->x + m[1][0] * base->y + m[2][0] * base->z;
419 f32 y = m[0][1] * base->x + m[1][1] * base->y + m[2][1] * base->z;
420 f32 z = m[0][2] * base->x + m[1][2] * base->y + m[2][2] * base->z;
421
422 out->x = x;
423 out->y = y;
424 out->z = z;
425}
426
427void KartMat::DevMatrixByVector2(JGeometry::TVec3f *out, JGeometry::TVec3f *base, Mtx m)
428{

Callers 7

MakeSpinMethod · 0.80
MakeHalfSpinMethod · 0.80
DoCalcWgVelMethod · 0.80
GroundReflectionMethod · 0.80
WallReflectionMethod · 0.80
DoAccelMethod · 0.80
DoSlipSoundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected