length method

double length()

Implementation

double length() {
  return math.sqrt(x * x + y * y);
}