magnitude method

double magnitude()

Implementation

double magnitude() {
  return sqrt((x * x) + (y * y) + (z * z));
}