Panda3D
unionBoundingVolume.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 unionBoundingVolume.I
10  * @author drose
11  * @date 2012-02-08
12  */
13 
14 /**
15  * Constructs an empty union.
16  */
17 INLINE_MATHUTIL UnionBoundingVolume::
19 }
20 
21 /**
22  * Returns the number of components in the union.
23  */
24 INLINE_MATHUTIL int UnionBoundingVolume::
25 get_num_components() const {
26  return (int)_components.size();
27 }
28 
29 /**
30  * Returns the nth component in the union.
31  */
33 get_component(int n) const {
34  nassertr(n >= 0 && n < (int)_components.size(), nullptr);
35  return _components[n];
36 }
UnionBoundingVolume()
Constructs an empty union.
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
get_component
Returns the nth component in the union.