staticIsFrontFacing static method

bool staticIsFrontFacing(
  1. Vector3 a,
  2. Vector3 b,
  3. Vector3 c,
  4. Vector3 direction,
)

Implementation

static bool staticIsFrontFacing(Vector3 a, Vector3 b, Vector3 c, Vector3 direction) {
  _v0.sub2(c, b);
  _v1.sub2(a, b);

  // strictly front facing
  return (_v0.cross(_v1).dot(direction) < 0) ? true : false;
}