Applies a function f to each component of this vector and returns a new Vector3.
f
Vector3 apply(double Function(double) f) => Vector3(f(x), f(y), f(z));