map

inline fun Vector2d.map(f: (Double) -> Double): Vector2d

Applies function f to both Vector2d.x and Vector2d.y, returning the result.