normalize method
Returns the line in magnitude of 1.0
Implementation
Offset normalize() {
final diffOffset = to - from;
return diffOffset * (1.0 / magnitude());
}
Returns the line in magnitude of 1.0
Offset normalize() {
final diffOffset = to - from;
return diffOffset * (1.0 / magnitude());
}