Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
using namespace JGeometry;
17
18
int 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
31
int stVecNormalize(TVec3f *vec)
32
{
Callers
15
stClampVecMax
Function · 0.85
stClampVecMin
Function · 0.85
stMakeDirectionMtx
Function · 0.85
doUnivRelease
Method · 0.85
searchTarget
Method · 0.85
checkOver1stKart
Method · 0.85
getKartCLDir
Method · 0.85
moveAttack
Method · 0.85
moveCenterLine
Method · 0.85
moveNormal
Method · 0.85
initDisappear
Method · 0.85
calcRotQuat
Method · 0.85
Calls
2
isZero
Method · 0.80
normalize
Method · 0.45
Tested by
no test coverage detected