package{ : Math : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Math »

 

package{


 
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var nPathRadius:Number = 100;
        var nDegrees:Number = 0
        
        var nRadians:Number = nDegrees * (Math.PI / 180)
        
        var nX:Number = nPathRadius * Math.sin(nRadians);
        var nY:Number = nPathRadius * Math.cos(nRadians)
        
        trace(nX);
        trace(nY);
        
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» Math