Vector2DDistance Method (Vector2D, Vector2D) |
Returns the distance between two vectors.
Namespace:
LightBuzz
Assembly:
LightBuzz (in LightBuzz.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static float Distance(
Vector2D vector1,
Vector2D vector2
)
Public Shared Function Distance (
vector1 As Vector2D,
vector2 As Vector2D
) As Single
public:
static float Distance(
Vector2D vector1,
Vector2D vector2
)
static member Distance :
vector1 : Vector2D *
vector2 : Vector2D -> float32
Parameters
- vector1
- Type: LightBuzzVector2D
The first vector. - vector2
- Type: LightBuzzVector2D
The second vector.
Return Value
Type:
SingleThe distance of the vectors.
See Also