Tesla Graphics Engine Documentation (January 2012)
Distance Method (start, end)
Tesla
►
Tesla.Math
►
Vector2
►
Distance(Vector2, Vector2)
C#
Compute the distance between two vectors.
Declaration Syntax
C#
public
static
float
Distance
(
Vector2
start
,
Vector2
end
)
Parameters
start
(
Vector2
)
First vector
end
(
Vector2
)
Second vector
Return Value
Resulting distance
Assembly:
Tesla
(Module: Tesla) Version: 0.5.0.0 (0.5.0.0)