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

Function stVecNormalize

src/Sato/stMath.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace JGeometry;
17
18int stVecNormalize(TVec3f &vec)
19{
20 int ret = 0;
21
22 if (!vec.isZero())
23 {
24 vec.normalize();
25 ret = 1;
26 }
27
28 return ret;
29}
30
31int stVecNormalize(TVec3f *vec)
32{

Callers 15

stClampVecMaxFunction · 0.85
stClampVecMinFunction · 0.85
stMakeDirectionMtxFunction · 0.85
doUnivReleaseMethod · 0.85
searchTargetMethod · 0.85
checkOver1stKartMethod · 0.85
getKartCLDirMethod · 0.85
moveAttackMethod · 0.85
moveCenterLineMethod · 0.85
moveNormalMethod · 0.85
initDisappearMethod · 0.85
calcRotQuatMethod · 0.85

Calls 2

isZeroMethod · 0.80
normalizeMethod · 0.45

Tested by

no test coverage detected