Calculate the dot product of this vector and v.
double dot(Vector3 v) { return x * v.x + y * v.y + z * v.z; }