Vec class

Constructors

Vec(double x, double y, [double z = 0])

Properties

dist2 → double
no setter
hashCode → int
The hash code for this object.
no setterinherited
length → double
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x ↔ double
getter/setter pair
y ↔ double
getter/setter pair
z ↔ double
getter/setter pair

Methods

add(Vec other) → Vec
clone() → Vec
cpr(Vec other) → double
dpr(Vec other) → double
equals(Vec other) → bool
lrp(Vec other, double t) → Vec
mul(double scalar) → Vec
neg() → Vec
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
per() → Vec
rotWith(Vec center, double angle) → Vec
sub(Vec other) → Vec
toString() → String
A string representation of this object.
inherited
uni() → Vec

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

addVec(Vec a, Vec b) → Vec
addXY(Vec a, double x, double y) → Vec
crossProduct(Vec a, Vec b) → double
dist(Vec a, Vec b) → double
dist2Between(Vec a, Vec b) → double
dotProduct(Vec a, Vec b) → double
from(dynamic point) → Vec
lerpVec(Vec a, Vec b, double t) → Vec
mulVec(Vec v, double scalar) → Vec
rotWithVec(Vec point, Vec center, double angle) → Vec
subVec(Vec a, Vec b) → Vec