Vec2D class

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Float32List
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
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