normalize method

Vector normalize()

Implementation

Vector normalize() {
  final num nf = 1 / length;
  return Vector(x * nf, y * nf);
}