Vector class Null safety

Constructors

Vector(num x, num y)
Vector.polar(num len, num angle)
Vector.zero()
const

Properties

degrees num
hashCode int
The hash code for this object. [...]
isNormalized bool
isValid bool
isZero bool
length num
lengthSqr num
runtimeType Type
A representation of the runtime type of the object.
x num
final
y num
final

Methods

clone()
crossDet(Vector vec) num
crossDetXY(num x, num y) num
distance(Vector vec) num
distanceSqr(Vector vec) num
distanceXY(num x, num y) num
distanceXYSqr(num x, num y) num
dot(Vector vec) num
dotXY(num x, num y) num
equalsXY(num x, num y) bool
isNear(Vector other) bool
isNearXY(num x, num y) bool
isWithin(Vector other, num epsilon) bool
isWithinXY(num x, num y, num epsilon) bool
lerp(Vector to, num t)
negate()
normalize()
normalLeft()
normalRight()
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
reflect(Vector normal)
rotateSpinor(Vector vec)
scale(num scale)
scaleLength(num value)
slerp(Vector vec, num t)
spinorBetween(Vector vec)
toString()
A string representation of this object. [...]
override

Operators

operator *(Vector other)
operator +(Vector other)
operator -(Vector other)
operator /(Vector other)
operator ==(Object other) bool
The equality operator. [...]
override
operator unary-()

Constants

Epsilon → const num
`0.0000001`
EpsilonSqr → const num
`Epsilon * Epsilon`