Vector2Distance Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Calculates the distance between two vectors.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static float Distance(
	Vector2 value1,
	Vector2 value2
)

Parameters

value1
Type: RageVector2
The first vector.
value2
Type: RageVector2
The second vector.

Return Value

Type: Single
The distance between the two vectors.
See Also

Reference