CodeBase - Get Distance

Return to the CodeBase listing

Category: Complete Applications

Version: 1.0

0
0

Information

Uploaded: 6th Jul 2010 12:58

Modified: 1st Jan 1970 01:00

Author:  CrazyCoder

Summary

Returns the distance between 2 2D or 3D points

Full Description

These functions use pythagoras' theorem to find the distance between 2 points by finding the square root of the x-distance squared plus by the y-distance squared and if 3D then the z-distance squared as well. It doesn't matter if X1-X2 is negative because you square it.

Comments

No comments yet.