|
utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
|
Field of view representation in radians for up, down, left, and right directions. More...
#include <headers/utility/graphic/field_of_view.hpp>
Public Member Functions | |
| FieldOfView (void) | |
| Default constructor initializing all FOV angles to 0 radians. | |
| FieldOfView (Type up, Type down, Type left, Type right) | |
| Constructor to initialize field of view angles in radians. | |
| FieldOfView (const FieldOfView &other)=default | |
| Copy constructor. | |
| FieldOfView (FieldOfView &&other) noexcept=default | |
| Move constructor. | |
| FieldOfView & | operator= (const FieldOfView &other)=default |
| Copy assignment operator. | |
| FieldOfView & | operator= (FieldOfView &&other) noexcept=default |
| Move assignment operator. | |
| ~FieldOfView (void)=default | |
| Default destructor for FieldOfView. | |
| FieldOfView & | setUp (const Type up) |
| Set up field-of-view in radians. | |
| Type | getUp (void) const noexcept |
| Get up field-of-view in radians. | |
| FieldOfView & | setDown (const Type down) |
| Set down field-of-view in radians. | |
| Type | getDown (void) const noexcept |
| Get down field-of-view in radians. | |
| FieldOfView & | setLeft (const Type left) |
| Set left field-of-view in radians. | |
| Type | getLeft (void) const noexcept |
| Get left field-of-view in radians. | |
| FieldOfView & | setRight (const Type right) |
| Set right field-of-view in radians. | |
| Type | getRight (void) const noexcept |
| Get right field-of-view in radians. | |
| bool | isSymmetric (Type epsilon=Type { 1e-6 }) const noexcept |
| Check if this FOV is symmetric around vertical and horizontal axes. | |
Field of view representation in radians for up, down, left, and right directions.
| Type | Floating-point component type used for stored angles. |
Definition at line 49 of file field_of_view.hpp.
|
inline |
Default constructor initializing all FOV angles to 0 radians.
Definition at line 61 of file field_of_view.hpp.
|
inline |
Constructor to initialize field of view angles in radians.
| up | Vertical FOV above the forward direction in radians. |
| down | Vertical FOV below the forward direction in radians. |
| left | Horizontal FOV to the left of the forward direction in radians. |
| right | Horizontal FOV to the right of the forward direction in radians. |
Definition at line 75 of file field_of_view.hpp.
|
default |
Copy constructor.
| other | The FieldOfView object to copy from. |
|
defaultnoexcept |
Move constructor.
| other | The FieldOfView object to move from. |
|
inlinenoexcept |
Get down field-of-view in radians.
Definition at line 149 of file field_of_view.hpp.

|
inlinenoexcept |
Get left field-of-view in radians.
Definition at line 169 of file field_of_view.hpp.

|
inlinenoexcept |
Get right field-of-view in radians.
Definition at line 189 of file field_of_view.hpp.

|
inlinenoexcept |
Get up field-of-view in radians.
Definition at line 129 of file field_of_view.hpp.

|
inlinenoexcept |
Check if this FOV is symmetric around vertical and horizontal axes.
| epsilon | Absolute tolerance used for comparison. |
Definition at line 200 of file field_of_view.hpp.
|
default |
Copy assignment operator.
| other | The FieldOfView object to copy from. |
|
defaultnoexcept |
Move assignment operator.
| other | The FieldOfView object to move from. |
|
inline |
Set down field-of-view in radians.
| down | Down angle in radians. |
Definition at line 139 of file field_of_view.hpp.
|
inline |
Set left field-of-view in radians.
| left | Left angle in radians. |
Definition at line 159 of file field_of_view.hpp.
|
inline |
Set right field-of-view in radians.
| right | Right angle in radians. |
Definition at line 179 of file field_of_view.hpp.
|
inline |
Set up field-of-view in radians.
| up | Up angle in radians. |
Definition at line 119 of file field_of_view.hpp.