subtract method

Vector subtract(
  1. Vector other
)

Implementation

Vector subtract(Vector other) {
  return Vector(x - other.x, y - other.y, z - other.z);
}