Panda3D
 All Classes Functions Variables Enumerations
odeCappedCylinderGeom.I
1 // Filename: odeCappedCylinderGeom.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 OdeCappedCylinderGeom::
16 set_params(dReal radius, dReal length) {
17  dGeomCapsuleSetParams(_id, radius, length);
18 }
19 
20 INLINE void OdeCappedCylinderGeom::
21 get_params(dReal *radius, dReal *length) const {
22  dGeomCapsuleGetParams(_id, radius, length);
23 }
24 
25 INLINE dReal OdeCappedCylinderGeom::
26 get_radius() const {
27  dReal radius, length;
28  dGeomCapsuleGetParams(_id, &radius, &length);
29  return radius;
30 }
31 
32 INLINE dReal OdeCappedCylinderGeom::
33 get_length() const {
34  dReal radius, length;
35  dGeomCapsuleGetParams(_id, &radius, &length);
36  return length;
37 }
38 
39 INLINE dReal OdeCappedCylinderGeom::
40 get_point_depth(dReal x, dReal y, dReal z) const {
41  return dGeomCapsulePointDepth(_id, x, y, z);
42 }
43 
44 INLINE dReal OdeCappedCylinderGeom::
45 get_point_depth(const LPoint3f &p) const {
46  return get_point_depth(p[0], p[1], p[2]);
47 }
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99