containsPoint method

bool containsPoint(
  1. Vector3 point
)

Implementation

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

  for (int i = 0; i < 6; i++) {
    if (planes[i].distanceToPoint(point) < 0) {
      return false;
    }
  }

  return true;
}