Vector class
Constructors
- Vector(num x, num y)
- Vector.polar(num len, num angle)
- Vector.zero()
-
const
Properties
- degrees → num
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isNormalized → bool
-
no setter
- isValid → bool
-
no setter
- isZero → bool
-
no setter
- length → num
-
no setter
- lengthSqr → num
-
no setter
- rads → num
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → num
-
final
- y → num
-
final
Methods
-
clone(
) → Vector -
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) → Vector -
negate(
) → Vector -
normalize(
) → Vector -
normalLeft(
) → Vector -
normalRight(
) → Vector -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reflect(
Vector normal) → Vector -
rotate(
num rads) → Vector -
rotateSpinor(
Vector vec) → Vector -
scale(
num scale) → Vector -
scaleLength(
num value) → Vector -
slerp(
Vector vec, num t) → Vector -
spinorBetween(
Vector vec) → Vector -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
Vector other) → Vector -
operator +(
Vector other) → Vector -
operator -(
Vector other) → Vector -
operator /(
Vector other) → Vector -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → Vector
Constants
- Epsilon → const num
- EpsilonSqr → const num