Panda3D
Loading...
Searching...
No Matches
boundingPlane.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 boundingPlane.I
10 * @author drose
11 * @date 2005-08-19
12 */
13
14/**
15 * Constructs an empty "plane" that has no intersections.
16 */
17INLINE_MATHUTIL BoundingPlane::
19}
20
21/**
22 *
23 */
24INLINE_MATHUTIL BoundingPlane::
25BoundingPlane(const LPlane &plane) :
26 _plane(plane)
27{
28 _flags = 0;
29}
30
31/**
32 *
33 */
34INLINE_MATHUTIL const LPlane &BoundingPlane::
35get_plane() const {
36 nassertr(!is_empty(), _plane);
37 nassertr(!is_infinite(), _plane);
38 return _plane;
39}
BoundingPlane()
Constructs an empty "plane" that has no intersections.
bool is_empty() const
Any kind of volume might be empty.
bool is_infinite() const
The other side of the empty coin is an infinite volume.