Vec4Component Class Template
Generic 4D value component. More...
Declaration
Public Member Typedefs Index
template < ... > | |
| using | Value_type = helios::math::vec4< TNumericType > |
template < ... > | |
| using | Handle_type = THandle |
Public Constructors Index
template < ... > | |
| Vec4Component ()=default | |
template < ... > | |
| Vec4Component (const Value_type value) | |
|
Constructs the component with an initial value. More... | |
template < ... > | |
| Vec4Component (const TNumericType x, const TNumericType y, const TNumericType z, const TNumericType w) | |
|
Constructs the component from scalar vector coordinates. More... | |
template < ... > | |
| Vec4Component (const Vec4Component &other) | |
|
Copy constructor. More... | |
template < ... > | |
| Vec4Component (Vec4Component &&) noexcept=default | |
|
Default move constructor. More... | |
Public Operators Index
template < ... > | |
| Vec4Component & | operator= (const Vec4Component &)=default |
|
Default copy assignment. More... | |
template < ... > | |
| Vec4Component & | operator= (Vec4Component &&) noexcept=default |
|
Default move assignment. More... | |
Public Member Functions Index
template < ... > | |
| Value_type | value () const noexcept |
|
Returns the current value. More... | |
template < ... > | |
| Value_type | value () noexcept |
|
Returns the current value. More... | |
template < ... > | |
| void | setValue (const Value_type value) noexcept |
|
Updates the value. More... | |
Private Member Attributes Index
template < ... > | |
| helios::math::vec4< TNumericType > | value_ {} |
Description
Generic 4D value component.
- Template Parameters
-
TDomainTag Semantic domain tag.
THandle Owning entity handle type.
TNumericType Scalar type for vector values.
Definition at line 28 of file Vec4Component.ixx.
Public Member Typedefs
Handle_type
|
Definition at line 34 of file Vec4Component.ixx.
Value_type
|
Definition at line 33 of file Vec4Component.ixx.
Public Constructors
Vec4Component()
| default |
Definition at line 36 of file Vec4Component.ixx.
Vec4Component()
| inline explicit |
Constructs the component with an initial value.
- Parameters
-
value Initial value vector.
Definition at line 43 of file Vec4Component.ixx.
Vec4Component()
| inline explicit |
Constructs the component from scalar vector coordinates.
- Parameters
-
x X component.
y Y component.
z Z component.
w W component.
Definition at line 53 of file Vec4Component.ixx.
Vec4Component()
| inline |
Copy constructor.
Copies the value.
- Parameters
-
other The component to copy from.
Definition at line 64 of file Vec4Component.ixx.
Vec4Component()
| noexcept default |
Default move constructor.
Definition at line 70 of file Vec4Component.ixx.
Public Operators
operator=()
| default |
Default copy assignment.
Definition at line 68 of file Vec4Component.ixx.
operator=()
| noexcept default |
Default move assignment.
Definition at line 72 of file Vec4Component.ixx.
Public Member Functions
setValue()
| inline noexcept |
Updates the value.
- Parameters
-
value New vector value.
Definition at line 97 of file Vec4Component.ixx.
Reference helios::engine::core::components::Vec4Component< TDomainTag, TNumericType, THandle, Args >::value.
value()
| inline noexcept |
Returns the current value.
- Returns
Current 4D vector value.
Definition at line 79 of file Vec4Component.ixx.
Referenced by helios::engine::core::components::Vec4Component< TDomainTag, TNumericType, THandle, Args >::setValue.
value()
| inline noexcept |
Returns the current value.
- Returns
Current 4D vector value.
Definition at line 88 of file Vec4Component.ixx.
Private Member Attributes
value_
|
Definition at line 30 of file Vec4Component.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.