Contents

SushiEngine

framing_distance

Scalar framing_distance(Scalar radius, Scalar field_of_view_radians, Scalar margin) noexcept

Parameters

NameType
radiusScalar
field_of_view_radiansScalar
marginScalar

Returns

Scalar

The distance from the subject's centre, always positive and finite.

Description

Returns the distance at which a sphere of the given radius fills the field of view.

See also

engine/foundation/core/include/README.md