HOME
Actionscript
Adobe AIR
Alchemy
AS2
AS3
Components
Flash
Flex
Papervision3D
Pixel Bender
Sound
Development
CMS
CSS
Javascript
jQuery
PHP
SEO
Tips
html5
iOS
Resources
Icons
Uncategorized
Wordpress
Function to normalizing an angle
A simple function to normalize angles.
1
2
3
4
5
public
static
function
normalizeAngle
(
angle
:
Number
)
:
Number
{
if
(
angle
<
0
||
angle
>
Math
.
PI
*
2
)
return
Math
.
abs
(
(
Math
.
PI
*
2
)
-
Math
.
abs
(
angle
)
)
;
else
return
angle
;
}
0
2009
05
/07
CATEGORY
AS2
AS3
Actionscript
Tips
Comments Off
Comment are closed.
Resource Sites
jumpeyecomponents.com
WORKS
UOC
Laurent Reiz
BoxMusical.com
Raid Urgellistan
CocaCola Happing Map
English
Español
May 2012
M
T
W
T
F
S
S
« Feb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31