Click or drag to resize

Matrix4FLookAt Method (Vector3F, Vector3F, Vector3F, Matrix4F)

Creates a look-at matrix.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2022.1.1.0 (2022.1.1.0)
Syntax
C#
public static void LookAt(
	ref Vector3F eye,
	ref Vector3F dir,
	ref Vector3F up,
	out Matrix4F result
)

Parameters

eye
Type: NeoAxisVector3F
Eye (camera) position in world space.
dir
Type: NeoAxisVector3F
Target position in world space.
up
Type: NeoAxisVector3F
Up vector in world space.
result
Type: NeoAxisMatrix4F
When the method completes, contains the instance of Matrix4F that transforms world space to camera space.
See Also