Skip to content

Float2

#include <ncarray/custom_types.hh>
struct Float2

Defined in src/lib/ncarray/custom_types.hh:470

A 2-float (single precision) vector data type.

Return Name Description
float x
float y

float x { 0.0f }

Defined in src/lib/ncarray/custom_types.hh:471


float y { 0.0f }

Defined in src/lib/ncarray/custom_types.hh:472

Return Name Description
constexpr Float2 constexpr Defaulted member function.
constexpr Float2 constexpr Defaulted member function.
constexpr Float2 constexpr Defaulted member function.
constexpr Float2 & operator= constexpr Defaulted assignment operator.
constexpr Float2 & operator= constexpr Defaulted assignment operator.
NCA_HD constexpr Float2 inline constexpr
NCA_HD constexpr Float2 inline constexpr
NCA_HD constexpr Float2 inline constexpr requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float2>)
NCA_HD operator bool const inline explicit

constexpr

constexpr constexpr Float2() = default

Defined in src/lib/ncarray/custom_types.hh:474

Defaulted member function.


constexpr

constexpr constexpr Float2(const Float2 &) = default

Defined in src/lib/ncarray/custom_types.hh:475

Defaulted member function.


constexpr

constexpr constexpr Float2(Float2 &&) = default

Defined in src/lib/ncarray/custom_types.hh:476

Defaulted member function.


constexpr

constexpr constexpr Float2 & operator=(const Float2 &) = default

Defined in src/lib/ncarray/custom_types.hh:477

Defaulted assignment operator.


constexpr

constexpr constexpr Float2 & operator=(Float2 &&) = default

Defined in src/lib/ncarray/custom_types.hh:478

Defaulted assignment operator.


inline constexpr

constexpr inline NCA_HD constexpr Float2(float x_, float y_)

Defined in src/lib/ncarray/custom_types.hh:480


inline constexpr

template<Numeric U> constexpr inline NCA_HD constexpr Float2(U s)

Defined in src/lib/ncarray/custom_types.hh:487


inline constexpr requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float2>)

template<Vector2DType U> constexpr inline NCA_HD constexpr Float2(const U & other) requires (!hd_std::is_same_v<hd_std::decay_t<U>, Float2>)

Defined in src/lib/ncarray/custom_types.hh:495


const inline explicit

inline explicit NCA_HD operator bool() const

Defined in src/lib/ncarray/custom_types.hh:500