63 #if ((defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && !defined(OPENMESH_VECTOR_LEGACY) 64 #include "Vector11T.hh" 68 #ifndef OPENMESH_VECTOR_HH 69 #define OPENMESH_VECTOR_HH 80 #if defined(__GNUC__) && defined(__SSE__) 81 #include <xmmintrin.h> 108 #if defined(__GNUC__) && defined(__SSE__) 128 #define TEMPLATE_HEADER template <typename Scalar, int N> 129 #define CLASSNAME VectorT 130 #define DERIVED VectorDataT<Scalar,N> 131 #define unroll(expr) for (int i=0; i<N; ++i) expr(i) 138 #include "VectorT_inc.hh" 141 #undef TEMPLATE_HEADER 150 #if OM_PARTIAL_SPECIALIZATION 153 #define TEMPLATE_HEADER template <typename Scalar> 154 #define CLASSNAME VectorT<Scalar,DIM> 155 #define DERIVED VectorDataT<Scalar,DIM> 159 #define unroll(expr) expr(0) expr(1) 160 #define unroll_comb(expr, op) expr(0) op expr(1) 161 #define unroll_csv(expr) expr(0), expr(1) 162 #include "VectorT_inc.hh" 170 #define unroll(expr) expr(0) expr(1) expr(2) 171 #define unroll_comb(expr, op) expr(0) op expr(1) op expr(2) 172 #define unroll_csv(expr) expr(0), expr(1), expr(2) 173 #include "VectorT_inc.hh" 181 #define unroll(expr) expr(0) expr(1) expr(2) expr(3) 182 #define unroll_comb(expr, op) expr(0) op expr(1) op expr(2) op expr(3) 183 #define unroll_csv(expr) expr(0), expr(1), expr(2), expr(3) 184 #include "VectorT_inc.hh" 191 #define unroll(expr) expr(0) expr(1) expr(2) expr(3) expr(4) 192 #define unroll_comb(expr, op) expr(0) op expr(1) op expr(2) op expr(3) op expr(4) 193 #define unroll_csv(expr) expr(0), expr(1), expr(2), expr(3), expr(4) 194 #include "VectorT_inc.hh" 201 #define unroll(expr) expr(0) expr(1) expr(2) expr(3) expr(4) expr(5) 202 #define unroll_comb(expr, op) expr(0) op expr(1) op expr(2) op expr(3) op expr(4) op expr(5) 203 #define unroll_csv(expr) expr(0), expr(1), expr(2), expr(3), expr(4), expr(5) 204 #include "VectorT_inc.hh" 211 #undef TEMPLATE_HEADER 228 values_[2]*_rhs.values_[0]-values_[0]*_rhs.values_[2],
229 values_[0]*_rhs.values_[1]-values_[1]*_rhs.values_[0]);
240 values_[2]*_rhs.values_[0]-values_[0]*_rhs.values_[2],
241 values_[0]*_rhs.values_[1]-values_[1]*_rhs.values_[0]);
253 template<
typename Scalar1,
typename Scalar2,
int N>
261 template<
typename Scalar,
int N>
270 template<
typename Scalar,
int N>
391 #endif // OPENMESH_VECTOR_HH defined
VectorT< unsigned int, 1 > Vec1ui
VectorT< double, 4 > Vec4d
VectorT< signed char, 5 > Vec5c
VectorT< unsigned int, 4 > Vec4ui
VectorT< unsigned short int, 3 > Vec3us
VectorT< signed short int, 1 > Vec1s
VectorT< Scalar1, N > operator*(Scalar2 _s, const VectorT< Scalar1, N > &_v)
VectorT< signed char, 1 > Vec1c
VectorT< signed short int, 2 > Vec2s
VectorT< signed char, 3 > Vec3c
VectorT< signed short int, 6 > Vec6s
VectorT< unsigned short int, 6 > Vec6us
VectorT< unsigned short int, 4 > Vec4us
VectorT< signed short int, 3 > Vec3s
VectorT< double, 6 > Vec6d
VectorT< float, 1 > Vec1f
VectorT< double, 2 > Vec2d
VectorT< unsigned short int, 1 > Vec1us
VectorT< float, 4 > Vec4f
VectorT< unsigned short int, 2 > Vec2us
VectorT< Scalar, N > cross(const VectorT< Scalar, N > &_v1, const VectorT< Scalar, N > &_v2)
VectorT< float, 2 > Vec2f
VectorT< signed int, 1 > Vec1i
VectorT< signed int, 4 > Vec4i
VectorT< unsigned int, 6 > Vec6ui
VectorT< unsigned char, 4 > Vec4uc
VectorT< signed char, 4 > Vec4c
VectorT< signed char, 6 > Vec6c
VectorT< double, 5 > Vec5d
VectorT< double, 3 > Vec3d
VectorT< unsigned int, 2 > Vec2ui
VectorT< unsigned int, 5 > Vec5ui
VectorT< signed int, 5 > Vec5i
VectorT< double, 1 > Vec1d
VectorT< float, 5 > Vec5f
VectorT< float, 3 > Vec3f
VectorT< unsigned short int, 5 > Vec5us
VectorT< unsigned char, 5 > Vec5uc
VectorT< unsigned char, 2 > Vec2uc
VectorT< signed short int, 5 > Vec5s
VectorT< signed char, 2 > Vec2c
Scalar dot(const VectorT< Scalar, N > &_v1, const VectorT< Scalar, N > &_v2)
VectorT< unsigned int, 3 > Vec3ui
VectorT< signed int, 2 > Vec2i
VectorT< signed int, 6 > Vec6i
VectorT< float, 6 > Vec6f
VectorT< unsigned char, 6 > Vec6uc
VectorT< signed int, 3 > Vec3i
VectorT< signed short int, 4 > Vec4s
VectorT< unsigned char, 1 > Vec1uc
VectorT< unsigned char, 3 > Vec3uc
auto operator%(const VectorT< OtherScalar, DIM > &_rhs) const -> typename std::enable_if< DIM==3, VectorT< decltype((*this)[0]*_rhs[0]-(*this)[0]*_rhs[0]), DIM >>::type