Panda3D
Loading...
Searching...
No Matches
odeCylinderGeom.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 odeCylinderGeom.I
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14INLINE void OdeCylinderGeom::
15set_params(dReal radius, dReal length) {
16 dGeomCylinderSetParams(_id, radius, length);
17}
18
19INLINE void OdeCylinderGeom::
20get_params(dReal *radius, dReal *length) const {
21 dGeomCapsuleGetParams(_id, radius, length);
22}
23
24INLINE dReal OdeCylinderGeom::
25get_radius() const {
26 dReal radius, length;
27 dGeomCylinderGetParams(_id, &radius, &length);
28 return radius;
29}
30
31INLINE dReal OdeCylinderGeom::
32get_length() const {
33 dReal radius, length;
34 dGeomCylinderGetParams(_id, &radius, &length);
35 return length;
36}