Wiki > TV3D65 Index > TVMathLibrary
GetDistance2D
DESCRIPTION
Calculates the distance between two 2D vectors
DECLARATION
| VB.NET | GetDistance2D(fX1 As Single , fY1 As Single , fX2 As Single , fY2 As Single) As Single |
| C++ | float GetDistance2D(float fX1 , float fY1 , float fX2 , float fY2 ) |
PARAMETERS
| NAME | OPTIONAL | DESCRIPTION |
| fX1 | No | x value of vector 1 |
| fY1 | No | y value of vector 1 |
| fX2 | No | x value of vector 2 |
| fY2 | No | y value of vector 2 |
RETURN VALUE
| Single | Distance between the two vectors |
EXAMPLES
TIPS
- Please add any notes or tips for this method.