Line class

Describes a line model (contains from, and end to)

Constructors

Line(Offset from, Offset to)

Properties

from Offset
Start of the line
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to Offset
End of the line
final

Methods

direction() double
Returns angle of the line in radians
magnitude() double
Returns the length of line
normalize() Offset
Returns the line in magnitude of 1.0
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