#include "DataFormats/GeometryVector/interface/PreciseFloatType.h"
Go to the source code of this file.
Classes | |
class | VectorDoublet< V1, V2 > |
Functions | |
template<class V1, class V2, class Scalar> | |
VectorDoublet< V1, V2 > | operator * (const Scalar &s, const VectorDoublet< V1, V2 > &v) |
template<class V1, class V2, class Scalar> | |
VectorDoublet< V1, V2 > | operator * (const VectorDoublet< V1, V2 > &v, const Scalar &s) |
Multiplication by scalar, does not change the precision of the vector. | |
template<class V1, class V2> | |
VectorDoublet< V1, V2 > | operator+ (const VectorDoublet< V1, V2 > &a, const VectorDoublet< V1, V2 > &b) |
vector sum and subtraction | |
template<class V1, class V2> | |
VectorDoublet< V1, V2 > | operator- (const VectorDoublet< V1, V2 > &a, const VectorDoublet< V1, V2 > &b) |
template<class V1, class V2, class Scalar> | |
VectorDoublet< V1, V2 > | operator/ (const VectorDoublet< V1, V2 > &v, const Scalar &s) |
VectorDoublet<V1,V2> operator * | ( | const Scalar & | s, | |
const VectorDoublet< V1, V2 > & | v | |||
) | [inline] |
Definition at line 77 of file VectorDoublet.h.
References VectorDoublet< V1, V2 >::first(), and VectorDoublet< V1, V2 >::second().
00077 { 00078 return VectorDoublet<V1,V2>( v.first()*s, v.second()*s); 00079 }
VectorDoublet<V1,V2> operator * | ( | const VectorDoublet< V1, V2 > & | v, | |
const Scalar & | s | |||
) | [inline] |
Multiplication by scalar, does not change the precision of the vector.
The return type is the same as the type of the vector argument.
Definition at line 73 of file VectorDoublet.h.
References VectorDoublet< V1, V2 >::first(), and VectorDoublet< V1, V2 >::second().
00073 { 00074 return VectorDoublet<V1,V2>( v.first()*s, v.second()*s); 00075 }
VectorDoublet<V1,V2> operator+ | ( | const VectorDoublet< V1, V2 > & | a, | |
const VectorDoublet< V1, V2 > & | b | |||
) | [inline] |
vector sum and subtraction
Definition at line 59 of file VectorDoublet.h.
References VectorDoublet< V1, V2 >::first(), and VectorDoublet< V1, V2 >::second().
00059 { 00060 return VectorDoublet<V1,V2>(a.first()+b.first(), a.second()+b.second()); 00061 }
VectorDoublet<V1,V2> operator- | ( | const VectorDoublet< V1, V2 > & | a, | |
const VectorDoublet< V1, V2 > & | b | |||
) | [inline] |
Definition at line 65 of file VectorDoublet.h.
References VectorDoublet< V1, V2 >::first(), and VectorDoublet< V1, V2 >::second().
00065 { 00066 return VectorDoublet<V1,V2>(a.first()-b.first(), a.second()-b.second()); 00067 }
VectorDoublet<V1,V2> operator/ | ( | const VectorDoublet< V1, V2 > & | v, | |
const Scalar & | s | |||
) | [inline] |
Definition at line 82 of file VectorDoublet.h.
References VectorDoublet< V1, V2 >::first(), and VectorDoublet< V1, V2 >::second().
00082 { 00083 return VectorDoublet<V1,V2>( v.first()/s, v.second()/s); 00084 }