Panda3D

linearVectorForce.I

00001 // Filename: linearVectorForce.I
00002 // Created by:  charles (21Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 ////////////////////////////////////////////////////////////////////
00016 //    Function : set_vector
00017 //      Access : Public
00018 // Description : encapsulating wrapper
00019 ////////////////////////////////////////////////////////////////////
00020 INLINE void LinearVectorForce::
00021 set_vector(const LVector3& v) {
00022   _fvec = v;
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //    Function : set_vector
00027 //      Access : Public
00028 // Description : piecewise encapsulating wrapper
00029 ////////////////////////////////////////////////////////////////////
00030 INLINE void LinearVectorForce::
00031 set_vector(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
00032   _fvec.set(x, y, z);
00033 }
00034 
00035 ////////////////////////////////////////////////////////////////////
00036 //    Function : get_local_vector
00037 //      Access : Public
00038 // Description :
00039 ////////////////////////////////////////////////////////////////////
00040 INLINE LVector3 LinearVectorForce::
00041 get_local_vector() const {
00042   return _fvec;
00043 }
00044 
00045 ////////////////////////////////////////////////////////////////////
00046 //     Function: LinearVectorForce::LinearVectorForce += LinearVectorForce
00047 //       Access: Public
00048 //  Description: Performs a memberwise addition between two LinearVectorForces.
00049 ////////////////////////////////////////////////////////////////////
00050 LinearVectorForce& LinearVectorForce::
00051 operator += (const LinearVectorForce &other) {
00052   _fvec+=other._fvec;
00053   // Should something happen with _amplitude?
00054   return *this;
00055 }
 All Classes Functions Variables Enumerations