calcNormal function
void
calcNormal(
- Vector3 target,
- Vector3 vec1,
- Vector3 vec2,
- Vector3 vec3,
////////////////////////////////////////////////////////////////////////////////// // Local Functions, Geometry //////////////////////////////////////////////////////////////////////////////////
Implementation
void calcNormal(Vector3 target,Vector3 vec1,Vector3 vec2,Vector3 vec3) {
_temp.sub2(vec1, vec2);
target.sub2(vec2, vec3);
target.cross(_temp).normalize();
}