# FASTEST way to calculate the distance between two points

**URL:** <https://forum.kirupa.com/t/fastest-way-to-calculate-the-distance-between-two-points/309843>\
**Category:** flash\
**Created:** [May 25, 2010, 10:39pm UTC](https://forum.kirupa.com/t/fastest-way-to-calculate-the-distance-between-two-points/309843 "2010-05-25T22:39:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [May 25, 2010, 10:39pm UTC](https://forum.kirupa.com/t/fastest-way-to-calculate-the-distance-between-two-points/309843/1 "2010-05-25T22:39:54Z")

</div>

I’m needing this for a current project, so I have been digging around quite a bit (with little luck) on **finding the distance between two points VERY fast**. Yes, it is quite critical that it be as optimized as possible.

I have the basics, Pythagorean Theorem run in different ways, as well as the Point.distance() function.

Any more? Any better ways to optimize the Pythagorean Theorem code?
