withX

fun withX(x: Int): Vec3i

Creates a new vector with the given x component.

Return

the new vector

Parameters

x

the new X component