Vector3Distance Method (Vector3, ISpatial)

RAGE Plugin Hook Documentation

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

Calculates the distance between a vector and a ISpatial

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

public static float Distance(
	Vector3 value1,
	ISpatial spatialObject
)

Parameters

value1
Type: RageVector3
The first vector.
spatialObject
Type: RageISpatial
The ISpatial.

Return Value

Type: Single
The distance between the vector and the ISpatial.
See Also

Reference