VectorUtils class

A Vector utility class.

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

computeFullCircleAngle({required Vector2 toDirection, Vector2? fromDirection}) double
Computes the angle between toDirection and fromDirection, with the result ranging between 0 and 2π radians.
offsetToVector(Offset offset) → Vector2
Converts an Offset to a vmath.Vector2.