Skip to main content

YawPitchRollComponent Struct Template

Stores Euler-style camera/control angles in radians. More...

Declaration

template <typename THandle> struct helios::engine::spatial::components::YawPitchRollComponent<THandle> { ... }

Public Member Typedefs Index

template <typename THandle>
usingValue_type = helios::math::vec3f
template <typename THandle>
usingHandle_type = THandle

Public Member Functions Index

template <typename THandle>
voidsetValue (const Value_type value) noexcept

Public Member Attributes Index

template <typename THandle>
floatyaw = 0

Rotation around up axis in radians. More...

template <typename THandle>
floatpitch = 0

Rotation around right axis in radians. More...

template <typename THandle>
floatroll = 0

Rotation around forward axis in radians. More...

Description

Stores Euler-style camera/control angles in radians.

Template Parameters
THandle

Owning entity handle type.

Definition at line 23 of file YawPitchRollComponent.ixx.

Public Member Typedefs

Handle_type

template <typename THandle>
using helios::engine::spatial::components::YawPitchRollComponent< THandle >::Handle_type = THandle

Definition at line 27 of file YawPitchRollComponent.ixx.

27 using Handle_type = THandle;

Value_type

template <typename THandle>
using helios::engine::spatial::components::YawPitchRollComponent< THandle >::Value_type = helios::math::vec3f

Definition at line 25 of file YawPitchRollComponent.ixx.

25 using Value_type = helios::math::vec3f;

Public Member Functions

setValue()

template <typename THandle>
void helios::engine::spatial::components::YawPitchRollComponent< THandle >::setValue (const Value_type value)
inline noexcept

Public Member Attributes

pitch

template <typename THandle>
float helios::engine::spatial::components::YawPitchRollComponent< THandle >::pitch = 0

Rotation around right axis in radians.

Definition at line 33 of file YawPitchRollComponent.ixx.

33 float pitch = 0;

Referenced by helios::engine::spatial::components::YawPitchRollComponent< THandle >::setValue.

roll

template <typename THandle>
float helios::engine::spatial::components::YawPitchRollComponent< THandle >::roll = 0

Rotation around forward axis in radians.

Definition at line 36 of file YawPitchRollComponent.ixx.

36 float roll = 0;

Referenced by helios::engine::spatial::components::YawPitchRollComponent< THandle >::setValue.

yaw

template <typename THandle>
float helios::engine::spatial::components::YawPitchRollComponent< THandle >::yaw = 0

Rotation around up axis in radians.

Definition at line 30 of file YawPitchRollComponent.ixx.

30 float yaw = 0;

Referenced by helios::engine::spatial::components::YawPitchRollComponent< THandle >::setValue.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.