Panda3D
 All Classes Functions Variables Enumerations
odeBallJoint.I
1 // Filename: odeBallJoint.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 OdeBallJoint::
16 set_anchor(dReal x, dReal y, dReal z) {
17  dJointSetBallAnchor(_id, x, y, z);
18 }
19 
20 INLINE void OdeBallJoint::
21 set_anchor(const LVecBase3f &anchor) {
22  dJointSetBallAnchor(_id, anchor[0], anchor[1], anchor[2]);
23 }
24 
25 INLINE void OdeBallJoint::
26 set_anchor2(dReal x, dReal y, dReal z) {
27  dJointSetBallAnchor2(_id, x, y, z);
28 }
29 
30 INLINE void OdeBallJoint::
31 set_anchor2(const LVecBase3f &anchor) {
32  dJointSetBallAnchor2(_id, anchor[0], anchor[1], anchor[2]);
33 }
34 
35 INLINE LVecBase3f OdeBallJoint::
36 get_anchor() const {
37  dVector3 result;
38  dJointGetBallAnchor(_id, result);
39  return LVecBase3f(result[0], result[1], result[2]);
40 }
41 
42 INLINE LVecBase3f OdeBallJoint::
43 get_anchor2() const {
44  dVector3 result;
45  dJointGetBallAnchor2(_id, result);
46  return LVecBase3f(result[0], result[1], result[2]);
47 }
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105