withComponents

open override fun withComponents(x: Double, y: Double): MutableVec2(source)

Creates a vector with the specified components.

Return

A vector with the specified components.

Parameters

x

The x component.

y

The y component.