Panda3D
odeSphereGeom.I
1 // Filename: odeSphereGeom.I
2 // Created by: joswilso (27Dec06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 INLINE void OdeSphereGeom::
16 set_radius(dReal radius) {
17  dGeomSphereSetRadius(_id, radius);
18 }
19 
20 INLINE dReal OdeSphereGeom::
21 get_radius() const {
22  return dGeomSphereGetRadius(_id);
23 }
24 
25 INLINE dReal OdeSphereGeom::
26 get_point_depth(dReal x, dReal y, dReal z) const {
27  return dGeomSpherePointDepth(_id, x, y, z);
28 }
29 
30 INLINE dReal OdeSphereGeom::
31 get_point_depth(const LPoint3f &p) const {
32  return get_point_depth(p[0], p[1], p[2]);
33 }
34 
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99