Panda3D
odeSphereGeom.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 odeSphereGeom.I
10  * @author joswilso
11  * @date 2006-12-27
12  */
13 
14 INLINE void OdeSphereGeom::
15 set_radius(dReal radius) {
16  dGeomSphereSetRadius(_id, radius);
17 }
18 
19 INLINE dReal OdeSphereGeom::
20 get_radius() const {
21  return dGeomSphereGetRadius(_id);
22 }
23 
24 INLINE dReal OdeSphereGeom::
25 get_point_depth(dReal x, dReal y, dReal z) const {
26  return dGeomSpherePointDepth(_id, x, y, z);
27 }
28 
29 INLINE dReal OdeSphereGeom::
30 get_point_depth(const LPoint3f &p) const {
31  return get_point_depth(p[0], p[1], p[2]);
32 }