Blender V5.3
blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY > Struct Template Reference

#include <BLI_normalized_int_types.hh>

Public Types

using VecT = VecBase<float, 2>
using IntVecT = VecBase<T, 2>

Public Member Functions

 NormalizedIntVec ()=default
constexpr NormalizedIntVec (IntVecT value)
 operator IntVecT () const

Static Public Member Functions

static constexpr VecT max ()
static constexpr VecT min ()

Public Attributes

T x: SizeX
T y: SizeY

Static Public Attributes

static constexpr bool is_signed = std::is_signed<T>()
static constexpr T x_max = (1 << (SizeX - int(is_signed))) - 1
static constexpr T y_max = (1 << (SizeY - int(is_signed))) - 1

Detailed Description

template<typename T, int SizeX, int SizeY>
struct blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >

Definition at line 18 of file BLI_normalized_int_types.hh.

Member Typedef Documentation

◆ IntVecT

template<typename T, int SizeX, int SizeY>
using blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::IntVecT = VecBase<T, 2>

Definition at line 20 of file BLI_normalized_int_types.hh.

◆ VecT

template<typename T, int SizeX, int SizeY>
using blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::VecT = VecBase<float, 2>

Definition at line 19 of file BLI_normalized_int_types.hh.

Constructor & Destructor Documentation

◆ NormalizedIntVec() [1/2]

template<typename T, int SizeX, int SizeY>
blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::NormalizedIntVec ( )
default

◆ NormalizedIntVec() [2/2]

template<typename T, int SizeX, int SizeY>
blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::NormalizedIntVec ( IntVecT value)
inlineconstexpr

Definition at line 36 of file BLI_normalized_int_types.hh.

References x, and y.

Member Function Documentation

◆ max()

template<typename T, int SizeX, int SizeY>
constexpr VecT blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::max ( )
inlinestaticconstexpr

Definition at line 43 of file BLI_normalized_int_types.hh.

References x_max, and y_max.

◆ min()

template<typename T, int SizeX, int SizeY>
constexpr VecT blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::min ( )
inlinestaticconstexpr

Definition at line 48 of file BLI_normalized_int_types.hh.

References is_signed, x_max, and y_max.

◆ operator IntVecT()

template<typename T, int SizeX, int SizeY>
blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::operator IntVecT ( ) const
inline

Definition at line 38 of file BLI_normalized_int_types.hh.

References x, and y.

Member Data Documentation

◆ is_signed

template<typename T, int SizeX, int SizeY>
bool blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::is_signed = std::is_signed<T>()
staticconstexpr

Definition at line 21 of file BLI_normalized_int_types.hh.

Referenced by min().

◆ x

template<typename T, int SizeX, int SizeY>
T blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::x

Definition at line 32 of file BLI_normalized_int_types.hh.

Referenced by NormalizedIntVec(), and operator IntVecT().

◆ x_max

template<typename T, int SizeX, int SizeY>
T blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::x_max = (1 << (SizeX - int(is_signed))) - 1
staticconstexpr

Definition at line 22 of file BLI_normalized_int_types.hh.

Referenced by max(), and min().

◆ y

template<typename T, int SizeX, int SizeY>
T blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::y

Definition at line 33 of file BLI_normalized_int_types.hh.

Referenced by NormalizedIntVec(), and operator IntVecT().

◆ y_max

template<typename T, int SizeX, int SizeY>
T blender::detail::NormalizedIntVec< T, 2, SizeX, SizeY >::y_max = (1 << (SizeY - int(is_signed))) - 1
staticconstexpr

Definition at line 23 of file BLI_normalized_int_types.hh.

Referenced by max(), and min().


The documentation for this struct was generated from the following file: