Panda3D
 All Classes Functions Variables Enumerations
odePlaneGeom.cxx
1 // Filename: odePlaneGeom.cxx
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 #include "config_ode.h"
16 #include "odePlaneGeom.h"
17 
18 TypeHandle OdePlaneGeom::_type_handle;
19 
20 OdePlaneGeom::
21 OdePlaneGeom(dGeomID id) :
22  OdeGeom(id) {
23 }
24 
25 OdePlaneGeom::
26 OdePlaneGeom(dReal a, dReal b, dReal c, dReal d) :
27  OdeGeom(dCreatePlane(0, a, b, c, d)) {
28 }
29 
30 OdePlaneGeom::
31 OdePlaneGeom(const LVecBase4f &params) :
32  OdeGeom(dCreatePlane(0, params[0], params[1], params[2], params[3])) {
33 }
34 
35 OdePlaneGeom::
36 OdePlaneGeom(OdeSpace &space, dReal a, dReal b, dReal c, dReal d) :
37  OdeGeom(dCreatePlane(space.get_id(), a, b, c, d)) {
38 }
39 
40 OdePlaneGeom::
41 OdePlaneGeom(OdeSpace &space, const LVecBase4f &params) :
42  OdeGeom(dCreatePlane(space.get_id(), params[0], params[1], params[2], params[3])) {
43 }
44 
45 OdePlaneGeom::
46 ~OdePlaneGeom() {
47 }
This is the base class for all three-component vectors and points.
Definition: lvecBase4.h:111
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
dJointID get_id() const
Returns the underlying dJointID.
Definition: odeJoint.I:34