newFrom

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

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