Contents

SushiEngine::placeholder

look_at

Matrix4 look_at(const Vector3 &eye, const Vector3 &center, const Vector3 &up) noexcept

Parameters

NameTypeDescription
eyeconst Vector3 &

Camera position in world space.

centerconst Vector3 &

The point the camera looks at.

upconst Vector3 &

The world up direction.

Returns

Matrix4

The view (world-to-camera) matrix.

Description

A right-handed view matrix looking from eye toward center.