Panda3D

Loading...
Searching...
No Matches
odeSphereGeom.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 odeSphereGeom.I
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14INLINE void OdeSphereGeom::
15set_radius(dReal radius) {
16 dGeomSphereSetRadius(_id, radius);
17}
18
19INLINE dReal OdeSphereGeom::
20get_radius() const {
21 return dGeomSphereGetRadius(_id);
22}
23
24INLINE dReal OdeSphereGeom::
25get_point_depth(dReal x, dReal y, dReal z) const {
26 return dGeomSpherePointDepth(_id, x, y, z);
27}
28
29INLINE dReal OdeSphereGeom::
30get_point_depth(const LPoint3f &p) const {
31 return get_point_depth(p[0], p[1], p[2]);
32}