RNBoolean R3Contains(const R3Point& point, const R3Box& box) { // Return whether point contains box if (!box.IsPoint()) return FALSE; if (!R3Contains(point, box.Min())) return FALSE; return TRUE; }
RNBoolean R3Contains(const R3Triangle& triangle, const R3Box& box) { // Return whether triangle contains box if (!box.IsPlanar()) return FALSE; if (!R3Contains(triangle, box.Min())) return FALSE; if (!R3Contains(triangle, box.Max())) return FALSE; return TRUE; }
RNBoolean R3Contains(const R3Span& span, const R3Box& box) { // Return whether span contains box if (!R3Contains(span.Line(), box)) return FALSE; if (!R3Contains(span, box.Min())) return FALSE; if (!R3Contains(span, box.Max())) return FALSE; return TRUE; }
RNBoolean R3Contains(const R3Plane& plane, const R3Box& box) { // Return whether plane contains box if (!box.IsPlanar()) return FALSE; if (!R3Contains(plane, box.Min())) return FALSE; if (!R3Contains(plane, box.Max())) return FALSE; return TRUE; }
RNBoolean R3Contains(const R3Line& line, const R3Box& box) { // Return whether line contains box if (!box.IsLinear()) return FALSE; if (!R3Contains(line, box.Min())) return FALSE; if (!R3Contains(line, box.Max())) return FALSE; return TRUE; }