static_containsPoint static method

bool static_containsPoint(
  1. dynamic point,
  2. Vector3 a,
  3. Vector3 b,
  4. Vector3 c,
)

Implementation

static bool static_containsPoint(point, Vector3 a, Vector3 b, Vector3 c) {
  static_getBarycoord(point, a, b, c, _v3);

  return (_v3.x >= 0) && (_v3.y >= 0) && ((_v3.x + _v3.y) <= 1);
}