Contents

SushiEngine

arrival_framing

CameraBasis arrival_framing(const Vector3 &eye, const Vector3 &center, const Vector3 &pole, Scalar body_radius, Scalar field_of_view_radians) noexcept

Parameters

NameType
eyeconst Vector3 &
centerconst Vector3 &
poleconst Vector3 &
body_radiusScalar
field_of_view_radiansScalar

Returns

CameraBasis

An orthonormal right-handed basis, plus the local vertical it was built on.

Description

Returns the attitude to arrive at when a camera is teleported to inspect a body.

See also

engine/foundation/core/include/README.md