applyFunction method

Vector3 applyFunction(
  1. double func(
    1. double
    )
)

Implementation

Vector3 applyFunction(double Function(double) func) {
  return Vector3(func(x), func(y), func(z));
}