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::
18 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 */
32 INLINE_MATHUTIL const GeometricBoundingVolume *UnionBoundingVolume::
33 get_component(int n) const {
34 nassertr(n >= 0 && n < (int)_components.size(), nullptr);
35 return _components[n];
36 }
GeometricBoundingVolume
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
Definition: geometricBoundingVolume.h:29
UnionBoundingVolume::get_num_components
get_num_components
Returns the number of components in the union.
Definition: unionBoundingVolume.h:48
UnionBoundingVolume::get_component
get_component
Returns the nth component in the union.
Definition: unionBoundingVolume.h:48
UnionBoundingVolume::UnionBoundingVolume
UnionBoundingVolume()
Constructs an empty union.
Definition: unionBoundingVolume.I:18