Float2
Float2
Section titled “Float2”#include <custom_types.hh>struct Float2Defined in src/lib/ncarray/custom_types.hh:471
A 2-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 |
Float2 |
function |
Declared here |
Float2 |
function |
Declared here |
Float2 |
function |
Declared here |
Float2 |
function |
Declared here |
Float2 |
function |
Declared here |
Float2 |
function |
Declared here |
operator bool |
function |
Declared here |
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
float |
x |
|
float |
y |
float x { 0.0f }Defined in src/lib/ncarray/custom_types.hh:472
float y { 0.0f }Defined in src/lib/ncarray/custom_types.hh:473
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
constexpr |
Float2 constexpr |
Defaulted member function. |
constexpr |
Float2 constexpr |
Defaulted member function. |
constexpr |
Float2 constexpr |
Defaulted member function. |
NCA_HD constexpr |
Float2 inline constexpr |
|
NCA_HD constexpr |
Float2 inline constexpr |
|
NCA_HD constexpr |
Float2 inline constexpr requires (!is_same_v<decay_t<U>, Float2>) |
|
NCA_HD |
operator bool const inline explicit |
Float2
Section titled “Float2”constexpr
constexpr constexpr Float2() = defaultDefined in src/lib/ncarray/custom_types.hh:475
Defaulted member function.
Float2
Section titled “Float2”constexpr
constexpr constexpr Float2(const Float2 &) = defaultDefined in src/lib/ncarray/custom_types.hh:476
Defaulted member function.
Float2
Section titled “Float2”constexpr
constexpr constexpr Float2(Float2 &&) = defaultDefined in src/lib/ncarray/custom_types.hh:477
Defaulted member function.
Float2
Section titled “Float2”inline constexpr
constexpr inline NCA_HD constexpr Float2(float x_, float y_)Defined in src/lib/ncarray/custom_types.hh:481
Float2
Section titled “Float2”inline constexpr
template<Numeric U> constexpr inline NCA_HD constexpr Float2(U s)Defined in src/lib/ncarray/custom_types.hh:488
Float2
Section titled “Float2”inline constexpr requires (!is_same_v<decay_t<U>, Float2>)
template<Vector2DType U> constexpr inline NCA_HD constexpr Float2(const U & other) requires (!is_same_v<decay_t<U>, Float2>)Defined in src/lib/ncarray/custom_types.hh:496
operator bool
Section titled “operator bool”const inline explicit
inline explicit NCA_HD operator bool() constDefined in src/lib/ncarray/custom_types.hh:501