Panda3D
 All Classes Functions Variables Enumerations
boundingPlane.I
1 // Filename: boundingPlane.I
2 // Created by: drose (19Aug05)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: BoundingPlane::Default Constructor
18 // Access: Published
19 // Description: Constructs an empty "plane" that has no
20 // intersections.
21 ////////////////////////////////////////////////////////////////////
22 INLINE_MATHUTIL BoundingPlane::
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: BoundingPlane::Constructor
28 // Access: Published
29 // Description:
30 ////////////////////////////////////////////////////////////////////
31 INLINE_MATHUTIL BoundingPlane::
32 BoundingPlane(const LPlane &plane) :
33  _plane(plane)
34 {
35  _flags = 0;
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: BoundingPlane::get_plane
40 // Access: Published
41 // Description:
42 ////////////////////////////////////////////////////////////////////
43 INLINE_MATHUTIL const LPlane &BoundingPlane::
44 get_plane() const {
45  nassertr(!is_empty(), _plane);
46  nassertr(!is_infinite(), _plane);
47  return _plane;
48 }
BoundingPlane()
Constructs an empty "plane" that has no intersections.
Definition: boundingPlane.I:23
bool is_infinite() const
The other side of the empty coin is an infinite volume.
bool is_empty() const
Any kind of volume might be empty.