newFrom

abstract fun newFrom(x: Double, y: Double): P

Creates a new Vector2D with the same type of the current one with different x and y.