1 #ifndef VectorDoublet_H 2 #define VectorDoublet_H 7 template <
class V1,
class V2>
16 const V1&
first()
const {
return a_; }
17 const V2&
second()
const {
return b_; }
55 template <
class V1,
class V2>
60 template <
class V1,
class V2>
68 template <
class V1,
class V2,
class Scalar>
72 template <
class V1,
class V2,
class Scalar>
77 template <
class V1,
class V2,
class Scalar>
VectorDoublet & operator/=(const T &t)
VectorDoublet & operator*=(const T &t)
VectorDoublet(const V1 &a, const V2 &b)
VectorDoublet< V1, V2 > operator+(const VectorDoublet< V1, V2 > &a, const VectorDoublet< V1, V2 > &b)
vector sum and subtraction
VectorDoublet< V1, V2 > operator-(const VectorDoublet< V1, V2 > &a, const VectorDoublet< V1, V2 > &b)
U second(std::pair< T, U > const &p)
VectorDoublet & operator-=(const VectorDoublet &v)
VectorDoublet< V1, V2 > operator*(const VectorDoublet< V1, V2 > &v, const Scalar &s)
VectorDoublet< V1, V2 > operator/(const VectorDoublet< V1, V2 > &v, const Scalar &s)
const V2 & second() const
VectorDoublet & operator+=(const VectorDoublet &v)
VectorDoublet operator-() const
PreciseFloatType< Scalar1, Scalar2 >::Type dot(const VectorDoublet &v) const