normalVector function
Vector3
normalVector(
- Vector3 a,
- Vector3 b,
- Vector3 c
Calcunormal vector
Implementation
Vector3 normalVector(Vector3 a, Vector3 b, Vector3 c) {
return (b - a).cross(c - a).normalized();
}