withRotation

fun withRotation(yaw: Float, pitch: Float): Position

Creates a new position with the given yaw and pitch and the coordinates of this position.

Return

the new position

Parameters

yaw

the new yaw

pitch

the new pitch