stagexl
stagexl
Vector
distance
distance
stagexl
stagexl
Vector
distance
method
distance
Source
stagexl
stagexl
Vector
Constants
Epsilon
EpsilonSqr
Constructors
Vector
polar
zero
Properties
degrees
hashCode
isNormalized
isValid
isZero
length
lengthSqr
rads
runtimeType
x
y
Operators
operator *
operator +
operator -
operator /
operator ==
operator unary-
Methods
clone
crossDet
crossDetXY
distance
distanceSqr
distanceXY
distanceXYSqr
dot
dotXY
equalsXY
isNear
isNearXY
isWithin
isWithinXY
lerp
negate
normalize
normalLeft
normalRight
noSuchMethod
reflect
rotate
rotateSpinor
scale
scaleLength
slerp
spinorBetween
toString
num
distance
(
Vector
vec
)
Source
num distance(Vector vec) { num xd = x - vec.x; num yd = y - vec.y; return sqrt(xd * xd + yd * yd); }