Float4
Float4
Section titled “Float4”#include <ncarray/custom_types.hh>struct Float4Defined in src/lib/ncarray/custom_types.hh:573
A 4-float (single precision) vector data type.
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
x |
variable |
Declared here |
y |
variable |
Declared here |
z |
variable |
Declared here |
w |
variable |
Declared here |
Float4 |
function |
Declared here |
Float4 |
function |
Declared here |
Float4 |
function |
Declared here |
Float4 |
function |
Declared here |
Float4 |
function |
Declared here |
Float4 |
function |
Declared here |
operator bool |
function |
Declared here |
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
float |
x |
|
float |
y |
|
float |
z |
|
float |
w |
float x { 0.0f }Defined in src/lib/ncarray/custom_types.hh:574
float y { 0.0f }Defined in src/lib/ncarray/custom_types.hh:575
float z { 0.0f }Defined in src/lib/ncarray/custom_types.hh:576
float w { 0.0f }Defined in src/lib/ncarray/custom_types.hh:577
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
constexpr |
Float4 constexpr |
Defaulted member function. |
constexpr |
Float4 constexpr |
Defaulted member function. |
constexpr |
Float4 constexpr |
Defaulted member function. |
NCA_HD constexpr |
Float4 inline constexpr |
|
NCA_HD constexpr |
Float4 inline constexpr |
|
NCA_HD constexpr |
Float4 inline constexpr requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float4>) |
|
NCA_HD |
operator bool const inline explicit |
Float4
Section titled “Float4”constexpr
constexpr constexpr Float4() = defaultDefined in src/lib/ncarray/custom_types.hh:579
Defaulted member function.
Float4
Section titled “Float4”constexpr
constexpr constexpr Float4(const Float4 &) = defaultDefined in src/lib/ncarray/custom_types.hh:580
Defaulted member function.
Float4
Section titled “Float4”constexpr
constexpr constexpr Float4(Float4 &&) = defaultDefined in src/lib/ncarray/custom_types.hh:581
Defaulted member function.
Float4
Section titled “Float4”inline constexpr
constexpr inline NCA_HD constexpr Float4(float x_, float y_, float z_, float w_)Defined in src/lib/ncarray/custom_types.hh:585
Float4
Section titled “Float4”inline constexpr
template<Numeric U> constexpr inline NCA_HD constexpr Float4(U s)Defined in src/lib/ncarray/custom_types.hh:594
Float4
Section titled “Float4”inline constexpr requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float4>)
template<Vector2DType U> constexpr inline NCA_HD constexpr Float4(const U & other) requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float4>)Defined in src/lib/ncarray/custom_types.hh:604
operator bool
Section titled “operator bool”const inline explicit
inline explicit NCA_HD operator bool() constDefined in src/lib/ncarray/custom_types.hh:616