Panda3D
angularVectorForce.I
1 // Filename: angularVectorForce.I
2 // Created by: charles (09Aug00)
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 ////////////////////////////////////////////////////////////////////
16 // Function : set_quat
17 // Access : public
18 ////////////////////////////////////////////////////////////////////
19 INLINE void AngularVectorForce::
20 set_quat(const LRotation &v) {
21  _fvec = v;
22 }
23 
24 ////////////////////////////////////////////////////////////////////
25 // Function : set_hpr
26 // Access : public
27 ////////////////////////////////////////////////////////////////////
28 INLINE void AngularVectorForce::
29 set_hpr(PN_stdfloat h, PN_stdfloat p, PN_stdfloat r) {
30  _fvec.set_hpr(LVecBase3(h, p, r));
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function : get_local_quat
35 // Access : public
36 ////////////////////////////////////////////////////////////////////
37 INLINE LRotation AngularVectorForce::
38 get_local_quat() const {
39  return _fvec;
40 }
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
This is a unit quaternion representing a rotation.
Definition: lrotation.h:92
void set_hpr(const LVecBase3f &hpr, CoordinateSystem cs=CS_default)
Sets the quaternion as the unit quaternion that is equivalent to these Euler angles.