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

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

RETURN VALUE

Single Distance between the two vectors

EXAMPLES

ExampleBasic example.

TIPS

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