containsPoint method

bool containsPoint(
  1. Vector3 point
)

Implementation

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

  for (int i = 0, l = faces.length; i < l; i++) {
    final face = faces[i];
    // compute signed distance and check on what half space the point lies
    if (face.distanceToPoint(point) > tolerance) return false;
  }

  return true;
}