Vector2
.Distance
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
Vector2
Vector2
.Distance
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
Vector2
All Members
Variables
magnitude
normalized
sqrMagnitude
this [int index]
x
y
Constructors
Vector2
Functions
Normalize
Scale
ToString
Class Variables
one
right
up
zero
Class Functions
Angle
ClampMagnitude
Distance
Dot
Lerp
Max
Min
MoveTowards
operator !=
operator *
operator +
operator -
operator /
operator ==
operator Vector2
operator Vector3
Scale
static
function
Distance (a : Vector2, b : Vector2) :
float
Description
Returns the distance between
a
and
b
.
Vector2.Distance
(a,b)
is the same as
(a-b).magnitude