Panda3D

odeCappedCylinderGeom.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 odeCappedCylinderGeom.I
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14 INLINE void OdeCappedCylinderGeom::
15 set_params(dReal radius, dReal length) {
16 dGeomCapsuleSetParams(_id, radius, length);
17 }
18
19 INLINE void OdeCappedCylinderGeom::
20 get_params(dReal *radius, dReal *length) const {
21 dGeomCapsuleGetParams(_id, radius, length);
22 }
23
24 INLINE dReal OdeCappedCylinderGeom::
25 get_radius() const {
26 dReal radius, length;
27 dGeomCapsuleGetParams(_id, &radius, &length);
28 return radius;
29 }
30
31 INLINE dReal OdeCappedCylinderGeom::
32 get_length() const {
33 dReal radius, length;
34 dGeomCapsuleGetParams(_id, &radius, &length);
35 return length;
36 }
37
38 INLINE dReal OdeCappedCylinderGeom::
39 get_point_depth(dReal x, dReal y, dReal z) const {
40 return dGeomCapsulePointDepth(_id, x, y, z);
41 }
42
43 INLINE dReal OdeCappedCylinderGeom::
44 get_point_depth(const LPoint3f &p) const {
45 return get_point_depth(p[0], p[1], p[2]);
46 }