00001 // Filename: zSpinParticle.I 00002 // Created by: charles (16Aug00) 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_initial_angle 00017 // Description : accessor 00018 //////////////////////////////////////////////////////////////////// 00019 INLINE void ZSpinParticle:: 00020 set_initial_angle(PN_stdfloat t) { 00021 _initial_angle = t; 00022 } 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Function : get_initial_angle 00026 // Description : accessor 00027 //////////////////////////////////////////////////////////////////// 00028 INLINE PN_stdfloat ZSpinParticle:: 00029 get_initial_angle() const { 00030 return _initial_angle; 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function : set_final_angle 00035 // Description : accessor 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE void ZSpinParticle:: 00038 set_final_angle(PN_stdfloat t) { 00039 _final_angle = t; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function : get_final_angle 00044 // Description : accessor 00045 //////////////////////////////////////////////////////////////////// 00046 INLINE PN_stdfloat ZSpinParticle:: 00047 get_final_angle() const { 00048 return _final_angle; 00049 } 00050 00051 INLINE PN_stdfloat ZSpinParticle:: 00052 get_angular_velocity() const { 00053 return _angular_velocity; 00054 } 00055 00056 INLINE void ZSpinParticle:: 00057 set_angular_velocity(PN_stdfloat v) { 00058 _angular_velocity = v; 00059 } 00060 00061 INLINE void ZSpinParticle:: 00062 enable_angular_velocity(bool bEnabled) { 00063 _bUseAngularVelocity = bEnabled; 00064 } 00065 00066 INLINE bool ZSpinParticle:: 00067 get_angular_velocity_enabled() const { 00068 return _bUseAngularVelocity; 00069 } 00070 00071