Click or drag to resize

Matrix4LookAt(Vector3, Vector3, Vector3) Method

Creates a look-at matrix.

Namespace: NeoAxis
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static Matrix4 LookAt(
	Vector3 eye,
	Vector3 dir,
	Vector3 up
)

Parameters

eye  Vector3
Eye (camera) position in world space.
dir  Vector3
Target position in world space.
up  Vector3
Up vector in world space.

Return Value

Matrix4
The instance of Matrix4 that transforms world space to camera space.
See Also