64 lines
1.2 KiB
Text
64 lines
1.2 KiB
Text
/**
|
|
* PANDA 3D SOFTWARE
|
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
*
|
|
* All use of this software is subject to the terms of the revised BSD
|
|
* license. You should have received a copy of this license along
|
|
* with this source code in a file named "LICENSE."
|
|
*
|
|
* @file zSpinParticle.I
|
|
* @author charles
|
|
* @date 2000-08-16
|
|
*/
|
|
|
|
/**
|
|
* accessor
|
|
*/
|
|
INLINE void ZSpinParticle::
|
|
set_initial_angle(PN_stdfloat t) {
|
|
_initial_angle = t;
|
|
}
|
|
|
|
/**
|
|
* accessor
|
|
*/
|
|
INLINE PN_stdfloat ZSpinParticle::
|
|
get_initial_angle() const {
|
|
return _initial_angle;
|
|
}
|
|
|
|
/**
|
|
* accessor
|
|
*/
|
|
INLINE void ZSpinParticle::
|
|
set_final_angle(PN_stdfloat t) {
|
|
_final_angle = t;
|
|
}
|
|
|
|
/**
|
|
* accessor
|
|
*/
|
|
INLINE PN_stdfloat ZSpinParticle::
|
|
get_final_angle() const {
|
|
return _final_angle;
|
|
}
|
|
|
|
INLINE PN_stdfloat ZSpinParticle::
|
|
get_angular_velocity() const {
|
|
return _angular_velocity;
|
|
}
|
|
|
|
INLINE void ZSpinParticle::
|
|
set_angular_velocity(PN_stdfloat v) {
|
|
_angular_velocity = v;
|
|
}
|
|
|
|
INLINE void ZSpinParticle::
|
|
enable_angular_velocity(bool bEnabled) {
|
|
_bUseAngularVelocity = bEnabled;
|
|
}
|
|
|
|
INLINE bool ZSpinParticle::
|
|
get_angular_velocity_enabled() const {
|
|
return _bUseAngularVelocity;
|
|
}
|