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