Click or drag to resize

Matrix4LookAt Method (Vector3, Vector3, Vector3, Matrix4)

Creates a look-at matrix.

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

Parameters

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