Panda3D
 All Classes Functions Variables Enumerations
arcEmitter.I
1 // Filename: arcEmitter.I
2 // Created by: charles (26Jun00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 ////////////////////////////////////////////////////////////////////
16 // Function : set_start_angle
17 // Access : public
18 // Description : start angle set
19 ////////////////////////////////////////////////////////////////////
20 
21 INLINE void ArcEmitter::
22 set_start_angle(PN_stdfloat angle) {
23  _start_theta = deg_2_rad(angle);
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function : set_end_angle
28 // Access : public
29 // Description : end angle set
30 ////////////////////////////////////////////////////////////////////
31 
32 INLINE void ArcEmitter::
33 set_end_angle(PN_stdfloat angle) {
34  _end_theta = deg_2_rad(angle);
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function : set_arc
39 // Access : public
40 // Description : arc sweep set
41 ////////////////////////////////////////////////////////////////////
42 
43 INLINE void ArcEmitter::
44 set_arc(PN_stdfloat startAngle, PN_stdfloat endAngle) {
45  _start_theta = deg_2_rad(startAngle);
46  _end_theta = deg_2_rad(endAngle);
47 }
48 
49 ////////////////////////////////////////////////////////////////////
50 // Function : get_start_angle
51 // Access : public
52 // Description : get start angle
53 ////////////////////////////////////////////////////////////////////
54 
55 INLINE PN_stdfloat ArcEmitter::
57  return rad_2_deg(_start_theta);
58 }
59 
60 ////////////////////////////////////////////////////////////////////
61 // Function : get_end_angle
62 // Access : public
63 // Description : get end angle
64 ////////////////////////////////////////////////////////////////////
65 
66 INLINE PN_stdfloat ArcEmitter::
68  return rad_2_deg(_end_theta);
69 }
70 
void set_arc(PN_stdfloat startAngle, PN_stdfloat endAngle)
arc sweep set
Definition: arcEmitter.I:44
void set_end_angle(PN_stdfloat angle)
end angle set
Definition: arcEmitter.I:33
PN_stdfloat get_start_angle()
get start angle
Definition: arcEmitter.I:56
PN_stdfloat get_end_angle()
get end angle
Definition: arcEmitter.I:67
void set_start_angle(PN_stdfloat angle)
start angle set
Definition: arcEmitter.I:22