normalize method

Offset normalize()

Returns the line in magnitude of 1.0

Implementation

Offset normalize() {
  final diffOffset = to - from;
  return diffOffset * (1.0 / magnitude());
}