calcNormal function

void calcNormal(
  1. Vector3 target,
  2. Vector3 vec1,
  3. Vector3 vec2,
  4. 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();
}