Vec2Component Class Template
Generic 2D value component. More...
Declaration
Public Member Typedefs Index
template < ... > | |
| using | Value_type = helios::math::vec2< TNumericType > |
template < ... > | |
| using | Handle_type = THandle |
Public Constructors Index
template < ... > | |
| Vec2Component ()=default | |
template < ... > | |
| Vec2Component (const Value_type value) | |
|
Constructs the component with an initial value. More... | |
template < ... > | |
| Vec2Component (const Vec2Component &other) | |
|
Copy constructor. More... | |
template < ... > | |
| Vec2Component (Vec2Component &&) noexcept=default | |
|
Default move constructor. More... | |
Public Operators Index
template < ... > | |
| Vec2Component & | operator= (const Vec2Component &)=default |
|
Default copy assignment. More... | |
template < ... > | |
| Vec2Component & | operator= (Vec2Component &&) noexcept=default |
|
Default move assignment. More... | |
Public Member Functions Index
template < ... > | |
| Value_type | value () noexcept |
|
Returns the current value. More... | |
template < ... > | |
| Value_type | value () const noexcept |
template < ... > | |
| void | setValue (const Value_type value) noexcept |
|
Updates the value. More... | |
Private Member Attributes Index
template < ... > | |
| helios::math::vec2< TNumericType > | value_ {} |
Description
Generic 2D value component.
- Template Parameters
-
TDomainTag Semantic domain tag.
THandle Owning entity handle type.
TNumericType Scalar type for vector values.
Definition at line 24 of file Vec2Component.ixx.
Public Member Typedefs
Handle_type
|
Definition at line 31 of file Vec2Component.ixx.
Value_type
|
Definition at line 30 of file Vec2Component.ixx.
Public Constructors
Vec2Component()
| default |
Definition at line 33 of file Vec2Component.ixx.
Vec2Component()
| inline explicit |
Constructs the component with an initial value.
- Parameters
-
value Initial value vector.
Definition at line 40 of file Vec2Component.ixx.
Vec2Component()
| inline |
Copy constructor.
- Parameters
-
other The component to copy from.
Definition at line 47 of file Vec2Component.ixx.
Vec2Component()
| noexcept default |
Default move constructor.
Definition at line 53 of file Vec2Component.ixx.
Public Operators
operator=()
| default |
Default copy assignment.
Definition at line 51 of file Vec2Component.ixx.
operator=()
| noexcept default |
Default move assignment.
Definition at line 55 of file Vec2Component.ixx.
Public Member Functions
setValue()
| inline noexcept |
Updates the value.
- Parameters
-
value New value vector.
Definition at line 75 of file Vec2Component.ixx.
Reference helios::engine::core::components::Vec2Component< TDomainTag, TNumericType, THandle, Args >::value.
value()
| inline noexcept |
Returns the current value.
- Returns
Current 2D vector value.
Definition at line 62 of file Vec2Component.ixx.
Referenced by helios::engine::core::components::Vec2Component< TDomainTag, TNumericType, THandle, Args >::setValue.
value()
| inline noexcept |
Definition at line 66 of file Vec2Component.ixx.
Private Member Attributes
value_
|
Definition at line 26 of file Vec2Component.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.