Panda3D
boundingHexahedron.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file boundingHexahedron.I
10  * @author drose
11  * @date 1999-10-03
12  */
13 
14 /**
15  *
16  */
17 INLINE_MATHUTIL BoundingHexahedron::
18 BoundingHexahedron() {
19 }
20 
21 /**
22  * Returns 8: the number of vertices of a hexahedron.
23  */
24 INLINE_MATHUTIL int BoundingHexahedron::
25 get_num_points() const {
26  return num_points;
27 }
28 
29 /**
30  * Returns the nth vertex of the hexahedron.
31  */
32 INLINE_MATHUTIL LPoint3 BoundingHexahedron::
33 get_point(int n) const {
34  nassertr(n >= 0 && n < num_points, LPoint3::zero());
35  return _points[n];
36 }
37 
38 /**
39  * Returns 6: the number of faces of a hexahedron.
40  */
41 INLINE_MATHUTIL int BoundingHexahedron::
42 get_num_planes() const {
43  return num_planes;
44 }
45 
46 /**
47  * Returns the nth face of the hexahedron.
48  */
49 INLINE_MATHUTIL LPlane BoundingHexahedron::
50 get_plane(int n) const {
51  nassertr(n >= 0 && n < num_planes, LPlane());
52  return _planes[n];
53 }
get_plane
Returns the nth face of the hexahedron.
get_point
Returns the nth vertex of the hexahedron.