linearVectorForce.I 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Filename: linearVectorForce.I
  2. // Created by: charles (21Jun00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function : set_vector
  20. // Access : Public
  21. // Description : encapsulating wrapper
  22. ////////////////////////////////////////////////////////////////////
  23. INLINE void LinearVectorForce::
  24. set_vector(const LVector3f& v) {
  25. _fvec = v;
  26. }
  27. ////////////////////////////////////////////////////////////////////
  28. // Function : set_vector
  29. // Access : Public
  30. // Description : piecewise encapsulating wrapper
  31. ////////////////////////////////////////////////////////////////////
  32. INLINE void LinearVectorForce::
  33. set_vector(float x, float y, float z) {
  34. _fvec.set(x, y, z);
  35. }
  36. ////////////////////////////////////////////////////////////////////
  37. // Function : get_local_vector
  38. // Access : Public
  39. // Description :
  40. ////////////////////////////////////////////////////////////////////
  41. INLINE LVector3f LinearVectorForce::
  42. get_local_vector(void) const {
  43. return _fvec;
  44. }