Posted By

Meestercor on 05/22/08


Tagged

textmate distance actionscript3


Versions (?)

Actionscript distance


 / Published in: Other
 

  1. import flash.geom.Point;
  2.  
  3. private function dist( toX:Number, toY:Number, fromX:Number, fromY:Number ) : Number {
  4. return Point.distance( new Point( toX, toY ), new Point( fromX, fromY ) );
  5. }

Report this snippet  

You need to login to post a comment.