37 nassertv(_min[0] <= _max[0] && _min[1] <= _max[1] && _min[2] <= _max[2]);
92 return LPoint3(a[(n>>2)&1][0], a[(n>>1)&1][1], a[(n)&1][2]);
112 nassertr(n >= 0 && n < 6, LPlane());
113 return LPlane(
get_point(plane_def[n][0]),
int get_num_points() const
Returns 8: the number of vertices of a rectangular solid.
static const LPoint3f & zero()
Returns a zero-length point.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
bool is_nan() const
Returns true if any component of the vector is not-a-number, false otherwise.
const LPoint3 & get_maxq() const
An inline accessor for the maximum value.
bool is_infinite() const
The other side of the empty coin is an infinite volume.
LPoint3 get_point(int n) const
Returns the nth vertex of the rectangular solid.
BoundingBox()
Constructs an empty box object.
bool is_empty() const
Any kind of volume might be empty.
LPlane get_plane(int n) const
Returns the nth face of the rectangular solid.
const LPoint3 & get_minq() const
An inline accessor for the minimum value.
int get_num_planes() const
Returns 6: the number of faces of a rectangular solid.