length method

double length()

Get the length of the vector

Implementation

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