Panda3D

arcEmitter.I

00001 // Filename: arcEmitter.I
00002 // Created by:  charles (26Jun00)
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_start_angle
00017 //      Access : public
00018 // Description : start angle set
00019 ////////////////////////////////////////////////////////////////////
00020 
00021 INLINE void ArcEmitter::
00022 set_start_angle(PN_stdfloat angle) {
00023   _start_theta = deg_2_rad(angle);
00024 }
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //    Function : set_end_angle
00028 //      Access : public
00029 // Description : end angle set
00030 ////////////////////////////////////////////////////////////////////
00031 
00032 INLINE void ArcEmitter::
00033 set_end_angle(PN_stdfloat angle) {
00034   _end_theta = deg_2_rad(angle);
00035 }
00036 
00037 ////////////////////////////////////////////////////////////////////
00038 //    Function : set_arc
00039 //      Access : public
00040 // Description : arc sweep set
00041 ////////////////////////////////////////////////////////////////////
00042 
00043 INLINE void ArcEmitter::
00044 set_arc(PN_stdfloat startAngle, PN_stdfloat endAngle) {
00045   _start_theta = deg_2_rad(startAngle);
00046   _end_theta = deg_2_rad(endAngle);
00047 }
00048 
00049 ////////////////////////////////////////////////////////////////////
00050 //    Function : get_start_angle
00051 //      Access : public
00052 // Description : get start angle
00053 ////////////////////////////////////////////////////////////////////
00054 
00055 INLINE PN_stdfloat ArcEmitter::
00056 get_start_angle() {
00057   return rad_2_deg(_start_theta);
00058 }
00059 
00060 ////////////////////////////////////////////////////////////////////
00061 //    Function : get_end_angle
00062 //      Access : public
00063 // Description : get end angle
00064 ////////////////////////////////////////////////////////////////////
00065 
00066 INLINE PN_stdfloat ArcEmitter::
00067 get_end_angle() {
00068   return rad_2_deg(_end_theta);
00069 }
00070 
 All Classes Functions Variables Enumerations