staticGetNormal static method
Implementation
static Vector3 staticGetNormal(Vector3 a, Vector3 b, Vector3 c, Vector3 target) {
target.subVectors(c, b);
_v0.subVectors(a, b);
target.cross(_v0);
var targetLengthSq = target.lengthSq();
if (targetLengthSq > 0) {
// print(" targer: ${target.toJSON()} getNormal scale: ${1 / Math.sqrt( targetLengthSq )} ");
return target.multiplyScalar(1 / Math.sqrt(targetLengthSq));
}
return target.set(0, 0, 0);
}