withLookAt

fun withLookAt(target: Vec3d): Position

Creates a new position with the rotation such that they are looking at the given target vector.

Return

the resulting position

Parameters

target

the target vector to look at