Panda3D
 All Classes Functions Variables Enumerations
odeBoxGeom.I
1 // Filename: odeBoxGeom.I
2 // Created by: joswilso (27Dec06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 INLINE void OdeBoxGeom::
16 set_lengths(dReal lx, dReal ly, dReal lz) {
17  dGeomBoxSetLengths(_id, lx, ly, lz);
18 }
19 
20 INLINE void OdeBoxGeom::
21 set_lengths(const LVecBase3f &size) {
22  set_lengths(size[0], size[1], size[2]);
23 }
24 
25 INLINE LVecBase3f OdeBoxGeom::
26 get_lengths() {
27  dVector3 res;
28  dGeomBoxGetLengths(_id, res);
29  return LVecBase3f(res[0], res[1], res[2]);
30 }
31 
32 INLINE dReal OdeBoxGeom::
33 get_point_depth(dReal x, dReal y, dReal z) {
34  return dGeomBoxPointDepth(_id, x, y, z);
35 }
36 
37 INLINE dReal OdeBoxGeom::
38 get_point_depth(const LPoint3f &p) {
39  return get_point_depth(p[0], p[1], p[2]);
40 }
41 
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99