withZ

Creates a new position with the given z component.

Return

the new position

Parameters

z

the new Z component