Panda3D
Loading...
Searching...
No Matches
odeBoxGeom.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 odeBoxGeom.I
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14INLINE void OdeBoxGeom::
15set_lengths(dReal lx, dReal ly, dReal lz) {
16 dGeomBoxSetLengths(_id, lx, ly, lz);
17}
18
19INLINE void OdeBoxGeom::
20set_lengths(const LVecBase3f &size) {
21 set_lengths(size[0], size[1], size[2]);
22}
23
24INLINE LVecBase3f OdeBoxGeom::
25get_lengths() {
26 dVector3 res;
27 dGeomBoxGetLengths(_id, res);
28 return LVecBase3f(res[0], res[1], res[2]);
29}
30
31INLINE dReal OdeBoxGeom::
32get_point_depth(dReal x, dReal y, dReal z) {
33 return dGeomBoxPointDepth(_id, x, y, z);
34}
35
36INLINE dReal OdeBoxGeom::
37get_point_depth(const LPoint3f &p) {
38 return get_point_depth(p[0], p[1], p[2]);
39}