Skip to main content

YawPitchRollComponent.ixx File

Component storing yaw/pitch/roll angles in radians. More...

Included Headers

#include <helios.engine.core.spatial> #include <helios.engine.core.units.Unit> #include <helios.math.types> #include <helios.engine.runtime.world.GameObject>

Namespaces Index

namespacehelios
namespaceengine
namespacespatial
namespacecomponents

Classes Index

structYawPitchRollComponent<THandle>

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

Description

Component storing yaw/pitch/roll angles in radians.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7export module helios.engine.spatial.components.YawPitchRollComponent;
8
9import helios.engine.runtime.world.GameObject;
10import helios.math.types;
11
12import helios.engine.core.spatial;
13import helios.engine.core.units.Unit;
14
16
22 template<typename THandle>
24
25 using Value_type = helios::math::vec3f;
26
27 using Handle_type = THandle;
28
30 float yaw = 0;
31
33 float pitch = 0;
34
36 float roll = 0;
37
38 void setValue(const Value_type value) noexcept {
39 yaw = value[0];
40 pitch = value[1];
41 roll = value[2];
42 }
43
44 };
45
46}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.