Skip to content

Float2

#include <custom_types.hh>
struct Float2

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

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

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
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

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

constexpr

constexpr constexpr Float2() = default

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

Defaulted member function.


constexpr

constexpr constexpr Float2(const Float2 &) = default

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

Defaulted member function.


constexpr

constexpr constexpr Float2(Float2 &&) = default

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

Defaulted member function.


inline constexpr

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

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


inline constexpr

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

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


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


const inline explicit

inline explicit NCA_HD operator bool() const

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