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

Function stMakePlaneParam

src/Sato/stMath.cpp:366–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366int stMakePlaneParam(stPlaneParam &planeParam, TVec3f &vec1, const TVec3f &vec2)
367{
368 vec1.normalize();
369 if (vec1.length() == 0.0f)
370 return 0;
371
372 planeParam.x = vec1.x;
373 planeParam.y = vec1.y;
374 planeParam.z = vec1.z;
375 planeParam.d = -vec1.dot(vec2);
376 return 1;
377}
378
379int stMakePlaneParam(stPlaneParam &planeParam, const TVec3f &vec1, const TVec3f &vec2, const TVec3f &vec3)
380{

Callers 6

getRoofPositionMethod · 0.85
getWallNormalMethod · 0.85
makeParameterMethod · 0.85
updateParameterMethod · 0.85
setWallParamMethod · 0.85

Calls 4

crossMethod · 0.80
normalizeMethod · 0.45
lengthMethod · 0.45
dotMethod · 0.45

Tested by

no test coverage detected