withX

fun withX(x: Double): Vec3d

Creates a new vector with the given x component.

Return

the new vector

Parameters

x

the new X component