00001 // Filename: linearCylinderVortexForce.I 00002 // Created by: charles (24Jul00) 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_radius 00017 // Access : public 00018 //////////////////////////////////////////////////////////////////// 00019 INLINE void LinearCylinderVortexForce:: 00020 set_radius(PN_stdfloat radius) { 00021 _radius = radius; 00022 } 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Function : set_length 00026 // Access : public 00027 //////////////////////////////////////////////////////////////////// 00028 INLINE void LinearCylinderVortexForce:: 00029 set_length(PN_stdfloat length) { 00030 _length = length; 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function : set_coef 00035 // Access : public 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE void LinearCylinderVortexForce:: 00038 set_coef(PN_stdfloat coef) { 00039 _coef = coef; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function : get_radius 00044 // Access : public 00045 //////////////////////////////////////////////////////////////////// 00046 INLINE PN_stdfloat LinearCylinderVortexForce:: 00047 get_radius() const { 00048 return _radius; 00049 } 00050 00051 //////////////////////////////////////////////////////////////////// 00052 // Function : get_length 00053 // Access : public 00054 //////////////////////////////////////////////////////////////////// 00055 INLINE PN_stdfloat LinearCylinderVortexForce:: 00056 get_length() const { 00057 return _length; 00058 } 00059 00060 //////////////////////////////////////////////////////////////////// 00061 // Function : get_coef 00062 // Access : public 00063 //////////////////////////////////////////////////////////////////// 00064 INLINE PN_stdfloat LinearCylinderVortexForce:: 00065 get_coef() const { 00066 return _coef; 00067 }