Vec2D class
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
override
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
-