Panda3D
odeCylinderGeom.I
1 // Filename: odeCylinderGeom.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 OdeCylinderGeom::
16 set_params(dReal radius, dReal length) {
17  dGeomCylinderSetParams(_id, radius, length);
18 }
19 
20 INLINE void OdeCylinderGeom::
21 get_params(dReal *radius, dReal *length) const {
22  dGeomCapsuleGetParams(_id, radius, length);
23 }
24 
25 INLINE dReal OdeCylinderGeom::
26 get_radius() const {
27  dReal radius, length;
28  dGeomCylinderGetParams(_id, &radius, &length);
29  return radius;
30 }
31 
32 INLINE dReal OdeCylinderGeom::
33 get_length() const {
34  dReal radius, length;
35  dGeomCylinderGetParams(_id, &radius, &length);
36  return length;
37 }