apply method

Vector3 apply(
  1. double f(
    1. double
    )
)

Applies a function f to each component of this vector and returns a new Vector3.

Implementation

Vector3 apply(double Function(double) f) => Vector3(f(x), f(y), f(z));