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