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

NAMEOPTIONALDESCRIPTION
fX1Nox value of vector 1
fY1Noy value of vector 1
fZ1Noz value of vector 1
fX2Nox value of vector 2
fY2Noy value of vector 2
fZ2Noz value of vector 2

RETURN VALUE

Single Distance between the two 3D vectors

EXAMPLES

ExampleBasic example.

TIPS

  • Please add any notes or tips for this method.
 
tvmathlibrary/getdistance3d.txt · Last modified: 2009/12/02 06:53 by 77.251.60.226