containsPoint method

bool containsPoint(
  1. Vector3 point
)

Implementation

bool containsPoint(Vector3 point) {
  var faces = this.faces;

  for (var i = 0, l = faces.length; i < l; i++) {
    var face = faces[i];

    // compute signed distance and check on what half space the point lies

    if (face.distanceToPoint(point) > tolerance) return false;
  }

  return true;
}