Float3
Float3
Section titled “Float3”#include <ncarray/custom_types.hh>struct Float3Defined in src/lib/ncarray/custom_types.hh:518
A 3-float (single precision) vector data type.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
float |
x |
|
float |
y |
|
float |
z |
float x { 0.0f }Defined in src/lib/ncarray/custom_types.hh:519
float y { 0.0f }Defined in src/lib/ncarray/custom_types.hh:520
float z { 0.0f }Defined in src/lib/ncarray/custom_types.hh:521
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
constexpr |
Float3 constexpr |
Defaulted member function. |
constexpr |
Float3 constexpr |
Defaulted member function. |
constexpr |
Float3 constexpr |
Defaulted member function. |
constexpr Float3 & |
operator= constexpr |
Defaulted assignment operator. |
constexpr Float3 & |
operator= constexpr |
Defaulted assignment operator. |
NCA_HD constexpr |
Float3 inline constexpr |
|
NCA_HD constexpr |
Float3 inline constexpr |
|
NCA_HD constexpr |
Float3 inline constexpr requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float3>) |
|
NCA_HD |
operator bool const inline explicit |
Float3
Section titled “Float3”constexpr
constexpr constexpr Float3() = defaultDefined in src/lib/ncarray/custom_types.hh:523
Defaulted member function.
Float3
Section titled “Float3”constexpr
constexpr constexpr Float3(const Float3 &) = defaultDefined in src/lib/ncarray/custom_types.hh:524
Defaulted member function.
Float3
Section titled “Float3”constexpr
constexpr constexpr Float3(Float3 &&) = defaultDefined in src/lib/ncarray/custom_types.hh:525
Defaulted member function.
operator=
Section titled “operator=”constexpr
constexpr constexpr Float3 & operator=(const Float3 &) = defaultDefined in src/lib/ncarray/custom_types.hh:526
Defaulted assignment operator.
operator=
Section titled “operator=”constexpr
constexpr constexpr Float3 & operator=(Float3 &&) = defaultDefined in src/lib/ncarray/custom_types.hh:527
Defaulted assignment operator.
Float3
Section titled “Float3”inline constexpr
constexpr inline NCA_HD constexpr Float3(float x_, float y_, float z_)Defined in src/lib/ncarray/custom_types.hh:529
Float3
Section titled “Float3”inline constexpr
template<Numeric U> constexpr inline NCA_HD constexpr Float3(U s)Defined in src/lib/ncarray/custom_types.hh:537
Float3
Section titled “Float3”inline constexpr requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float3>)
template<Vector2DType U> constexpr inline NCA_HD constexpr Float3(const U & other) requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float3>)Defined in src/lib/ncarray/custom_types.hh:546
operator bool
Section titled “operator bool”const inline explicit
inline explicit NCA_HD operator bool() constDefined in src/lib/ncarray/custom_types.hh:555