Click or drag to resize

Vector2DistanceSquared Method

Returns the squared distance between two vectors.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static float DistanceSquared(
	Vector2 value1,
	Vector2 value2
)

Parameters

value1
Type: SampSharp.Entities.SAMPVector2
The first vector.
value2
Type: SampSharp.Entities.SAMPVector2
The second vector.

Return Value

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