Blender
V3.3
|
#include <BLI_math_vec_types.hh>
Public Types | |
using | base_type = T |
using | uint_type = vec_base< as_uint_type< T >, Size > |
Public Member Functions | |
vec_base ()=default | |
vec_base (uint value) | |
vec_base (int value) | |
vec_base (float value) | |
vec_base (double value) | |
template<BLI_ENABLE_IF_VEC(Size,==2) > | |
vec_base (T _x, T _y) | |
template<BLI_ENABLE_IF_VEC(Size,==3) > | |
vec_base (T _x, T _y, T _z) | |
template<BLI_ENABLE_IF_VEC(Size,==4) > | |
vec_base (T _x, T _y, T _z, T _w) | |
template<typename U , BLI_ENABLE_IF_VEC(Size,==3) > | |
constexpr | vec_base (const vec_base< U, 2 > &xy, T z) |
template<typename U , BLI_ENABLE_IF_VEC(Size,==3) > | |
constexpr | vec_base (T x, const vec_base< U, 2 > &yz) |
template<typename U , BLI_ENABLE_IF_VEC(Size,==4) > | |
vec_base (vec_base< U, 3 > xyz, T w) | |
template<typename U , BLI_ENABLE_IF_VEC(Size,==4) > | |
vec_base (T x, vec_base< U, 3 > yzw) | |
template<typename U , typename V , BLI_ENABLE_IF_VEC(Size,==4) > | |
vec_base (vec_base< U, 2 > xy, vec_base< V, 2 > zw) | |
template<typename U , BLI_ENABLE_IF_VEC(Size,==4) > | |
vec_base (vec_base< U, 2 > xy, T z, T w) | |
template<typename U , BLI_ENABLE_IF_VEC(Size,==4) > | |
vec_base (T x, vec_base< U, 2 > yz, T w) | |
template<typename U , BLI_ENABLE_IF_VEC(Size,==4) > | |
vec_base (T x, T y, vec_base< U, 2 > zw) | |
template<typename U , int OtherSize, BLI_ENABLE_IF(OtherSize > Size) > | |
vec_base (const vec_base< U, OtherSize > &other) | |
vec_base (const T *ptr) | |
template<typename U , BLI_ENABLE_IF((std::is_convertible_v< U, T >)) > | |
vec_base (const U *ptr) | |
vec_base (const T(*ptr)[Size]) | |
template<typename U > | |
vec_base (const vec_base< U, Size > &vec) | |
operator const T * () const | |
operator T* () | |
const T & | operator[] (int index) const |
T & | operator[] (int index) |
vec_base & | operator+= (const vec_base &b) |
vec_base & | operator+= (const T &b) |
vec_base & | operator-= (const vec_base &b) |
vec_base & | operator-= (const T &b) |
vec_base & | operator*= (T b) |
vec_base & | operator*= (const vec_base &b) |
vec_base & | operator/= (T b) |
vec_base & | operator/= (const vec_base &b) |
BLI_INT_OP (T) friend vec_base operator&(const vec_base &a | |
BLI_INT_OP (T) friend vec_base operator&(const vec_base &a | |
BLI_INT_OP (T) friend vec_base operator&(T a | |
Public Attributes | |
const vec_base & | b |
T | b |
![]() | |
std::array< T, Size > | values |
Static Public Attributes | |
static constexpr int | type_length = Size |
Friends | |
vec_base | operator+ (const vec_base &a, const vec_base &b) |
vec_base | operator+ (const vec_base &a, const T &b) |
vec_base | operator+ (const T &a, const vec_base &b) |
vec_base | operator- (const vec_base &a) |
vec_base | operator- (const vec_base &a, const vec_base &b) |
vec_base | operator- (const vec_base &a, const T &b) |
vec_base | operator- (const T &a, const vec_base &b) |
vec_base | operator* (const vec_base &a, const vec_base &b) |
template<typename FactorT > | |
vec_base | operator* (const vec_base &a, FactorT b) |
vec_base | operator* (T a, const vec_base &b) |
vec_base | operator/ (const vec_base &a, const vec_base &b) |
vec_base | operator/ (const vec_base &a, T b) |
vec_base | operator/ (T a, const vec_base &b) |
Definition at line 65 of file BLI_math_vec_types.hh.
using blender::vec_base< T, Size >::base_type = T |
Definition at line 69 of file BLI_math_vec_types.hh.
using blender::vec_base< T, Size >::uint_type = vec_base<as_uint_type<T>, Size> |
Definition at line 70 of file BLI_math_vec_types.hh.
|
default |
|
inlineexplicit |
Definition at line 74 of file BLI_math_vec_types.hh.
References T.
|
inlineexplicit |
Definition at line 81 of file BLI_math_vec_types.hh.
References T.
|
inlineexplicit |
Definition at line 88 of file BLI_math_vec_types.hh.
References T.
|
inlineexplicit |
Definition at line 95 of file BLI_math_vec_types.hh.
References T.
|
inline |
Definition at line 105 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 111 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 118 of file BLI_math_vec_types.hh.
|
inlineconstexpr |
Mixed scalar-vector constructors.
Definition at line 129 of file BLI_math_vec_types.hh.
|
inlineconstexpr |
Definition at line 135 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 141 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 148 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 155 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 162 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 168 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 174 of file BLI_math_vec_types.hh.
|
inlineexplicit |
|
inline |
Conversion from pointers (from C-style vectors).
Definition at line 193 of file BLI_math_vec_types.hh.
References ptr.
|
inlineexplicit |
Definition at line 201 of file BLI_math_vec_types.hh.
References ptr.
|
inline |
Definition at line 208 of file BLI_math_vec_types.hh.
|
inlineexplicit |
Conversion from other vector types.
Definition at line 214 of file BLI_math_vec_types.hh.
References T.
blender::vec_base< T, Size >::BLI_INT_OP | ( | T | ) | const & |
Binary operators.
blender::vec_base< T, Size >::BLI_INT_OP | ( | T | ) | const & |
blender::vec_base< T, Size >::BLI_INT_OP | ( | T | ) | & |
References Freestyle::a, and blender::vec_base< T, Size >::b.
|
inline |
C-style pointer dereference.
Definition at line 223 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 228 of file BLI_math_vec_types.hh.
|
inline |
Definition at line 343 of file BLI_math_vec_types.hh.
References blender::vec_base< T, Size >::b, and BLI_VEC_OP_IMPL_SELF.
|
inline |
Definition at line 338 of file BLI_math_vec_types.hh.
References blender::vec_base< T, Size >::b, and BLI_VEC_OP_IMPL_SELF.
|
inline |
Definition at line 288 of file BLI_math_vec_types.hh.
References blender::vec_base< T, Size >::b, and BLI_VEC_OP_IMPL_SELF.
|
inline |
Definition at line 283 of file BLI_math_vec_types.hh.
References blender::vec_base< T, Size >::b, and BLI_VEC_OP_IMPL_SELF.
|
inline |
Definition at line 318 of file BLI_math_vec_types.hh.
References blender::vec_base< T, Size >::b, and BLI_VEC_OP_IMPL_SELF.
|
inline |
Definition at line 313 of file BLI_math_vec_types.hh.
References blender::vec_base< T, Size >::b, and BLI_VEC_OP_IMPL_SELF.
|
inline |
Definition at line 376 of file BLI_math_vec_types.hh.
References blender::vec_base< T, Size >::b, BLI_assert, BLI_VEC_OP_IMPL_SELF, and T.
|
inline |
Definition at line 370 of file BLI_math_vec_types.hh.
References blender::vec_base< T, Size >::b, BLI_assert, BLI_VEC_OP_IMPL_SELF, and T.
|
inline |
Definition at line 242 of file BLI_math_vec_types.hh.
References BLI_assert, and T.
|
inline |
|
friend |
Definition at line 323 of file BLI_math_vec_types.hh.
|
friend |
Definition at line 328 of file BLI_math_vec_types.hh.
Definition at line 333 of file BLI_math_vec_types.hh.
|
friend |
Definition at line 278 of file BLI_math_vec_types.hh.
|
friend |
Definition at line 273 of file BLI_math_vec_types.hh.
|
friend |
Arithmetic operators.
Definition at line 268 of file BLI_math_vec_types.hh.
|
friend |
Definition at line 308 of file BLI_math_vec_types.hh.
Definition at line 293 of file BLI_math_vec_types.hh.
|
friend |
Definition at line 303 of file BLI_math_vec_types.hh.
|
friend |
Definition at line 298 of file BLI_math_vec_types.hh.
|
friend |
Definition at line 348 of file BLI_math_vec_types.hh.
Definition at line 356 of file BLI_math_vec_types.hh.
Definition at line 362 of file BLI_math_vec_types.hh.
const vec_base & blender::vec_base< T, Size >::b |
Definition at line 384 of file BLI_math_vec_types.hh.
Referenced by blender::vec_base< T, Size >::BLI_INT_OP(), blender::vec_base< T, Size >::operator*=(), blender::vec_base< T, Size >::operator+=(), blender::vec_base< T, Size >::operator-=(), and blender::vec_base< T, Size >::operator/=().
T blender::vec_base< T, Size >::b |
Definition at line 389 of file BLI_math_vec_types.hh.
|
staticconstexpr |
Definition at line 67 of file BLI_math_vec_types.hh.