length method

double length()

Returns the length of the vector.

Implementation

double length() => sqrt(x * x + y * y);