Posted By

vcesjp on 05/01/08


Tagged

textmate actionscript as3


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

THEPWN3R


dist


 / Published in: ActionScript 3
 

  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.