Panda3D
odePlaneGeom.I
1 // Filename: odePlaneGeom.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 OdePlaneGeom::
16 set_params(dReal a, dReal b, dReal c, dReal d) {
17  dGeomPlaneSetParams(_id, a, b, c, d);
18 }
19 
20 INLINE void OdePlaneGeom::
21 set_params(const LVecBase4f &params) {
22  set_params(params[0], params[1], params[2], params[3]);
23 }
24 
25 INLINE LVecBase4f OdePlaneGeom::
26 get_params() const {
27  dVector4 res;
28  dGeomPlaneGetParams(_id, res);
29  return LVecBase4f(res[0], res[1], res[2], res[3]);
30 }
31 
32 INLINE dReal OdePlaneGeom::
33 get_point_depth(dReal x, dReal y, dReal z) const {
34  return dGeomPlanePointDepth(_id, x, y, z);
35 }
36 
37 INLINE dReal OdePlaneGeom::
38 get_point_depth(const LPoint3f &p) const {
39  return get_point_depth(p[0], p[1], p[2]);
40 }
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
This is the base class for all three-component vectors and points.
Definition: lvecBase4.h:111