bool containsPoint(Vector3 point) { var planes = this.planes; for (var i = 0; i < 6; i++) { if (planes[i].distanceToPoint(point) < 0) { return false; } } return true; }