VectorUtils class

Simple class with static methods for computing basic vector operation. It uses Offset as 2D vector.

Constructors

VectorUtils()

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

getDirectionVector(Offset point1, Offset point2) Offset
getPerpendicularVector(Offset point11, Offset point2) Offset
getPerpendicularVectorToVector(Offset vector, [bool clockwise = true]) Offset
getRectAroundLine(Offset point1, Offset point2, dynamic rectWidth) Path
getShorterLineEnd(Offset point1, Offset point2, double shortening) Offset
getShorterLineStart(Offset point1, Offset point2, double shortening) Offset
normalizeVector(Offset vector) Offset