<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/actionscript-3/tags/math</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 05:30:36 GMT</pubDate>
<item>
<title>(ActionScript 3) AS3 Shortest angle to angle (CW vs. CCW) - MartinMller</title>
<link>http://snipplr.com/view/66272/as3-shortest-angle-to-angle-cw-vs-ccw/</link>
<description><![CDATA[ <p>Calculate the shortest angle between two angles. Useful for deciding whether an object should be rotated ClockWise or Counter ClockWise.
Given arguments should be angels in degrees. Follow the link if you wish to use Radians instead.</p> ]]></description>
<pubDate>Sun, 22 Jul 2012 20:48:10 GMT</pubDate>
<guid>http://snipplr.com/view/66272/as3-shortest-angle-to-angle-cw-vs-ccw/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 MathUtils static class - adrianparr</title>
<link>http://snipplr.com/view/65581/as3-mathutils-static-class/</link>
<description><![CDATA[ <p>Credit goes to Bruno Imbrizi.</p> ]]></description>
<pubDate>Wed, 13 Jun 2012 02:56:19 GMT</pubDate>
<guid>http://snipplr.com/view/65581/as3-mathutils-static-class/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Map a Number within one range to another range - adrianparr</title>
<link>http://snipplr.com/view/65580/as3-map-a-number-within-one-range-to-another-range/</link>
<description><![CDATA[ <p>Credit goes to Bruno Imbrizi.</p> ]]></description>
<pubDate>Wed, 13 Jun 2012 02:53:34 GMT</pubDate>
<guid>http://snipplr.com/view/65580/as3-map-a-number-within-one-range-to-another-range/</guid>
</item>
<item>
<title>(ActionScript 3) Convert Radians to Degrees - zackattack27</title>
<link>http://snipplr.com/view/57010/convert-radians-to-degrees/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 22 Jul 2011 03:56:58 GMT</pubDate>
<guid>http://snipplr.com/view/57010/convert-radians-to-degrees/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Round Decimal Places - adrianparr</title>
<link>http://snipplr.com/view/48892/as3-round-decimal-places/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 12 Feb 2011 06:10:59 GMT</pubDate>
<guid>http://snipplr.com/view/48892/as3-round-decimal-places/</guid>
</item>
<item>
<title>(ActionScript 3) Math basics - shuchii</title>
<link>http://snipplr.com/view/39552/math-basics/</link>
<description><![CDATA[ <p>I always seem to forget about the Math class and its functions and possibilities… So I created this snippet as an easy reminder. Feel free to send me suggestions or extras I might add!</p> ]]></description>
<pubDate>Thu, 26 Aug 2010 18:26:01 GMT</pubDate>
<guid>http://snipplr.com/view/39552/math-basics/</guid>
</item>
<item>
<title>(ActionScript 3) AS3: Rounding to nearest N - Winkyboy</title>
<link>http://snipplr.com/view/37923/as3-rounding-to-nearest-n/</link>
<description><![CDATA[ <p>syntax:

roundToNearest(45, YourValueHere);</p> ]]></description>
<pubDate>Tue, 27 Jul 2010 05:01:57 GMT</pubDate>
<guid>http://snipplr.com/view/37923/as3-rounding-to-nearest-n/</guid>
</item>
<item>
<title>(ActionScript 3) Greatest Common Factor - b121417</title>
<link>http://snipplr.com/view/33076/greatest-common-factor/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 24 Apr 2010 12:22:37 GMT</pubDate>
<guid>http://snipplr.com/view/33076/greatest-common-factor/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Random Colour - adrianparr</title>
<link>http://snipplr.com/view/29303/as3-random-colour/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Mar 2010 17:23:47 GMT</pubDate>
<guid>http://snipplr.com/view/29303/as3-random-colour/</guid>
</item>
<item>
<title>(ActionScript 3) Using modulo to snap an object - sidneydekoning</title>
<link>http://snipplr.com/view/15834/using-modulo-to-snap-an-object/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 11 Jun 2009 07:31:48 GMT</pubDate>
<guid>http://snipplr.com/view/15834/using-modulo-to-snap-an-object/</guid>
</item>
<item>
<title>(ActionScript 3) Difference Between Two Angles - alexaivars</title>
<link>http://snipplr.com/view/15382/difference-between-two-angles/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 May 2009 03:51:22 GMT</pubDate>
<guid>http://snipplr.com/view/15382/difference-between-two-angles/</guid>
</item>
<item>
<title>(ActionScript 3) Simple Bitwise - Dividing By Two - allnatural</title>
<link>http://snipplr.com/view/15172/simple-bitwise--dividing-by-two/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 19 May 2009 14:02:06 GMT</pubDate>
<guid>http://snipplr.com/view/15172/simple-bitwise--dividing-by-two/</guid>
</item>
<item>
<title>(ActionScript 3) Degrees to Radians - cessnajumpin</title>
<link>http://snipplr.com/view/14969/degrees-to-radians/</link>
<description><![CDATA[ <p>This is something I always forget to do when working with sine and cosine; so I finally just made it into it's own function.
(usage would be along the lines of: velocityX += Math.cos(degreesToRadians(movieClip.rotation)) * speed;)</p> ]]></description>
<pubDate>Wed, 13 May 2009 17:28:21 GMT</pubDate>
<guid>http://snipplr.com/view/14969/degrees-to-radians/</guid>
</item>
<item>
<title>(ActionScript 3) Format Decimals - Mijos</title>
<link>http://snipplr.com/view/11424/format-decimals/</link>
<description><![CDATA[ <p>Usage:
 formatDecimals(3.1415926, 3);
returns: 3.141.
Also adds zeros to end if needed.</p> ]]></description>
<pubDate>Thu, 22 Jan 2009 03:48:59 GMT</pubDate>
<guid>http://snipplr.com/view/11424/format-decimals/</guid>
</item>
<item>
<title>(ActionScript 3) Lynda.com - Using the math class - sebastianassaf</title>
<link>http://snipplr.com/view/7882/lyndacom--using-the-math-class/</link>
<description><![CDATA[ <p>maths functions in actionscript</p> ]]></description>
<pubDate>Fri, 15 Aug 2008 16:43:39 GMT</pubDate>
<guid>http://snipplr.com/view/7882/lyndacom--using-the-math-class/</guid>
</item>
</channel>
</rss>