|
|
| GetDistance2D | |
| Distance# = GetDistance2D(X1, Y1, X2, Y2) | |
| Parameters: X1 = X coordinate of 1st point Y1 = Y coordinate of 1st point X2 = X coordinate of 2nd point Y2 = Y coordinate of 2nd poiint |
|
| Returns: Distance# = Distance between point 1 and point 2 |
|
The GetDistance2D() function returns the distance between any two given points. Mini Tutorial: This example uses the GetDistance2D function to calc the distance between the middle of screen and the mouse pointer.
|
| Related Info: | GetAngle2D | GetDistance3D | Sqrt : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |