Vec2D class

Constructors

Vec2D()
Vec2D.clone(Vec2D copy)
Vec2D.fromValues(double x, double y)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
values Float32List
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](int index) double
operator []=(int index, double value) → void

Static Methods

add(Vec2D o, Vec2D a, Vec2D b) Vec2D
copy(Vec2D o, Vec2D a) → void
copyFromList(Vec2D o, Float32List a) → void
distance(Vec2D a, Vec2D b) double
dot(Vec2D a, Vec2D b) double
length(Vec2D a) double
lerp(Vec2D o, Vec2D a, Vec2D b, double f) Vec2D
negate(Vec2D result, Vec2D a) Vec2D
normalize(Vec2D result, Vec2D a) → void
scale(Vec2D o, Vec2D a, double scale) Vec2D
scaleAndAdd(Vec2D result, Vec2D a, Vec2D b, double scale) Vec2D
squaredDistance(Vec2D a, Vec2D b) double
squaredLength(Vec2D a) double
subtract(Vec2D o, Vec2D a, Vec2D b) Vec2D
transformMat2(Vec2D o, Vec2D a, Mat2D m) Vec2D
transformMat2D(Vec2D o, Vec2D a, Mat2D m) Vec2D