withZ

fun withZ(z: Double): Vec3d

Creates a new vector with the given z component.

Return

the new vector

Parameters

z

the new Z component