openrndr / org.openrndr.math.transforms / lookAt

lookAt

fun lookAt(eye: Vector3, target: Vector3, up: Vector3 = Vector3.UNIT_Y): Matrix44 (source)

Create a view matrix from a camera at position eye look at target

eye the position of the camera target the target the camera looks at up direction of up, default direction is Vector3.UNIT_Y