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

#include <BLI_normalized_int_types.hh>

Public Types

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

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
T z: SizeZ
T w: SizeW

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
static constexpr T z_max = (1 << (SizeZ - int(is_signed))) - 1
static constexpr T w_max = (1 << (SizeW - int(is_signed))) - 1

Detailed Description

template<typename T, int SizeX, int SizeY, int SizeZ, int SizeW>
struct blender::detail::NormalizedIntVec< T, 4, SizeX, SizeY, SizeZ, SizeW >

Definition at line 58 of file BLI_normalized_int_types.hh.

Member Typedef Documentation

◆ IntVecT

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

Definition at line 60 of file BLI_normalized_int_types.hh.

◆ VecT

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

Definition at line 59 of file BLI_normalized_int_types.hh.

Constructor & Destructor Documentation

◆ NormalizedIntVec() [1/2]

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

◆ NormalizedIntVec() [2/2]

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

Definition at line 85 of file BLI_normalized_int_types.hh.

References w, x, y, and z.

Member Function Documentation

◆ max()

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

Definition at line 92 of file BLI_normalized_int_types.hh.

References w_max, x_max, y_max, and z_max.

◆ min()

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

Definition at line 97 of file BLI_normalized_int_types.hh.

References is_signed, w_max, x_max, y_max, and z_max.

◆ operator IntVecT()

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

Definition at line 87 of file BLI_normalized_int_types.hh.

References w, x, y, and z.

Member Data Documentation

◆ is_signed

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

Definition at line 61 of file BLI_normalized_int_types.hh.

Referenced by min().

◆ w

template<typename T, int SizeX, int SizeY, int SizeZ, int SizeW>
T blender::detail::NormalizedIntVec< T, 4, SizeX, SizeY, SizeZ, SizeW >::w

Definition at line 82 of file BLI_normalized_int_types.hh.

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

◆ w_max

template<typename T, int SizeX, int SizeY, int SizeZ, int SizeW>
T blender::detail::NormalizedIntVec< T, 4, SizeX, SizeY, SizeZ, SizeW >::w_max = (1 << (SizeW - int(is_signed))) - 1
staticconstexpr

Definition at line 65 of file BLI_normalized_int_types.hh.

Referenced by max(), and min().

◆ x

template<typename T, int SizeX, int SizeY, int SizeZ, int SizeW>
T blender::detail::NormalizedIntVec< T, 4, SizeX, SizeY, SizeZ, SizeW >::x

Definition at line 79 of file BLI_normalized_int_types.hh.

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

◆ x_max

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

Definition at line 62 of file BLI_normalized_int_types.hh.

Referenced by max(), and min().

◆ y

template<typename T, int SizeX, int SizeY, int SizeZ, int SizeW>
T blender::detail::NormalizedIntVec< T, 4, SizeX, SizeY, SizeZ, SizeW >::y

Definition at line 80 of file BLI_normalized_int_types.hh.

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

◆ y_max

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

Definition at line 63 of file BLI_normalized_int_types.hh.

Referenced by max(), and min().

◆ z

template<typename T, int SizeX, int SizeY, int SizeZ, int SizeW>
T blender::detail::NormalizedIntVec< T, 4, SizeX, SizeY, SizeZ, SizeW >::z

Definition at line 81 of file BLI_normalized_int_types.hh.

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

◆ z_max

template<typename T, int SizeX, int SizeY, int SizeZ, int SizeW>
T blender::detail::NormalizedIntVec< T, 4, SizeX, SizeY, SizeZ, SizeW >::z_max = (1 << (SizeZ - int(is_signed))) - 1
staticconstexpr

Definition at line 64 of file BLI_normalized_int_types.hh.

Referenced by max(), and min().


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