Panda3D

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