计算两点间的距离 Calculating the Distance Between Two Points

勾股定理 Pythagorean theorem

a² + b² = c²

var c:Number =  Math.sqrt(Math.pow(a,2) + Math.pow(b,2));

posted @ 2011-03-10 16:11  Lester Programming  Views(190)  Comments(0Edit  收藏  举报