#include <newBasic2DVector.h>
Public Types | |
typedef mathSSE::Vec2< T > | MathVector |
typedef Basic2DVector< T > | MathVector |
typedef Geom::Polar2Cartesian< T > | Polar |
typedef Geom::Polar2Cartesian< T > | Polar |
typedef T | ScalarType |
typedef T | ScalarType |
typedef mathSSE::Vec2< T > | VectorType |
Public Member Functions | |
T | barePhi () const |
T | barePhi () const |
Basic2DVector () | |
Basic2DVector (const Basic2DVector &p) | |
Copy constructor from same type. Should not be needed but for gcc bug 12685. More... | |
Basic2DVector () | |
template<typename U > | |
Basic2DVector (const Basic2DVector< U > &p) | |
Basic2DVector (const Basic2DVector &p) | |
Copy constructor from same type. Should not be needed but for gcc bug 12685. More... | |
template<class Other > | |
Basic2DVector (const Other &p) | |
template<class Other > | |
Basic2DVector (const Other &p) | |
Basic2DVector (const T &x, const T &y) | |
construct from cartesian coordinates More... | |
Basic2DVector (const T &x, const T &y) | |
construct from cartesian coordinates More... | |
template<typename U > | |
Basic2DVector (mathSSE::Vec2< U > const &iv) | |
template<typename U > | |
Basic2DVector (mathSSE::Vec4< U > const &iv) | |
template<typename U > | |
Basic2DVector (mathSSE::Vec2< U > const &iv) | |
template<typename U > | |
Basic2DVector (mathSSE::Vec4< U > const &iv) | |
T | cross (const Basic2DVector &lh) const |
Vector product, or "cross" product, with a vector of same type. More... | |
T | cross (const Basic2DVector &v) const |
Vector product, or "cross" product, with a vector of same type. More... | |
template<class U > | |
PreciseFloatType< T, U >::Type | cross (const Basic2DVector< U > &lh) const |
template<class U > | |
PreciseFloatType< T, U >::Type | cross (const Basic2DVector< U > &v) const |
T | dot (const Basic2DVector &lh) const |
Scalar product, or "dot" product, with a vector of same type. More... | |
T | dot (const Basic2DVector &v) const |
Scalar product, or "dot" product, with a vector of same type. More... | |
template<class U > | |
PreciseFloatType< T, U >::Type | dot (const Basic2DVector< U > &lh) const |
template<class U > | |
PreciseFloatType< T, U >::Type | dot (const Basic2DVector< U > &v) const |
T | mag () const |
The vector magnitude. Equivalent to sqrt(vec.mag2()) More... | |
T | mag () const |
The vector magnitude. Equivalent to sqrt(vec.mag2()) More... | |
T | mag2 () const |
The vector magnitude squared. Equivalent to vec.dot(vec) More... | |
T | mag2 () const |
The vector magnitude squared. Equivalent to vec.dot(vec) More... | |
MathVector const & | mathVector () const |
MathVector & | mathVector () |
Basic2DVector & | operator*= (T t) |
Scaling by a scalar value (multiplication) More... | |
Basic2DVector & | operator*= (const T &t) |
Scaling by a scalar value (multiplication) More... | |
template<class U > | |
Basic2DVector & | operator+= (const Basic2DVector< U > &p) |
template<class U > | |
Basic2DVector & | operator+= (const Basic2DVector< U > &p) |
Basic2DVector | operator- () const |
Unary minus, returns a vector with components (-x(),-y(),-z()) More... | |
Basic2DVector | operator- () const |
Unary minus, returns a vector with components (-x(),-y(),-z()) More... | |
template<class U > | |
Basic2DVector & | operator-= (const Basic2DVector< U > &p) |
template<class U > | |
Basic2DVector & | operator-= (const Basic2DVector< U > &p) |
Basic2DVector & | operator/= (T t) |
Scaling by a scalar value (division) More... | |
Basic2DVector & | operator/= (const T &t) |
Scaling by a scalar value (division) More... | |
Geom::Phi< T > | phi () const |
Geom::Phi< T > | phi () const |
T | r () const |
Radius, same as mag() More... | |
T | r () const |
Radius, same as mag() More... | |
Basic2DVector | unit () const |
Basic2DVector | unit () const |
T | x () const |
Cartesian x coordinate. More... | |
T | x () const |
Cartesian x coordinate. More... | |
T | y () const |
Cartesian y coordinate. More... | |
T | y () const |
Cartesian y coordinate. More... | |
Public Attributes | |
mathSSE::Vec2< T > | v |
Private Attributes | |
T | theX |
T | theY |
Definition at line 15 of file newBasic2DVector.h.
typedef mathSSE::Vec2<T> Basic2DVector< T >::MathVector |
Definition at line 20 of file newBasic2DVector.h.
typedef Basic2DVector<T> Basic2DVector< T >::MathVector |
Definition at line 22 of file oldBasic2DVector.h.
typedef Geom::Polar2Cartesian<T> Basic2DVector< T >::Polar |
Definition at line 21 of file newBasic2DVector.h.
typedef Geom::Polar2Cartesian<T> Basic2DVector< T >::Polar |
Definition at line 25 of file oldBasic2DVector.h.
typedef T Basic2DVector< T >::ScalarType |
Definition at line 18 of file newBasic2DVector.h.
typedef T Basic2DVector< T >::ScalarType |
Definition at line 24 of file oldBasic2DVector.h.
typedef mathSSE::Vec2<T> Basic2DVector< T >::VectorType |
Definition at line 19 of file newBasic2DVector.h.
|
inline |
default constructor uses default constructor of T to initialize the components. For built-in floating-point types this means initialization to zero
Definition at line 27 of file newBasic2DVector.h.
Referenced by Basic2DVector< TmpType >::operator-().
|
inline |
Copy constructor from same type. Should not be needed but for gcc bug 12685.
Definition at line 30 of file newBasic2DVector.h.
|
inline |
Definition at line 33 of file newBasic2DVector.h.
|
inlineexplicit |
Explicit constructor from other (possibly unrelated) vector classes The only constraint on the argument type is that it has methods x() and y(), and that these methods return a type convertible to T. Examples of use are
construction from a Basic2DVector with different precision
construction from a coordinate system converter
Definition at line 44 of file newBasic2DVector.h.
|
inline |
|
inline |
Definition at line 51 of file newBasic2DVector.h.
|
inline |
Definition at line 53 of file newBasic2DVector.h.
|
inline |
default constructor uses default constructor of T to initialize the components. For built-in floating-point types this means initialization to zero
Definition at line 31 of file oldBasic2DVector.h.
|
inline |
Copy constructor from same type. Should not be needed but for gcc bug 12685.
Definition at line 34 of file oldBasic2DVector.h.
|
inlineexplicit |
Explicit constructor from other (possibly unrelated) vector classes The only constraint on the argument type is that it has methods x() and y(), and that these methods return a type convertible to T. Examples of use are
construction from a Basic2DVector with different precision
construction from a coordinate system converter
Definition at line 45 of file oldBasic2DVector.h.
|
inline |
|
inline |
Definition at line 54 of file oldBasic2DVector.h.
|
inline |
Definition at line 57 of file oldBasic2DVector.h.
|
inline |
Azimuthal angle. The value is returned in radians, in the range (-pi,pi]. Same precision as the system atan2(x,y) function. The return type is Geom::Phi<T>, see it's documentation.
Definition at line 78 of file newBasic2DVector.h.
Referenced by PV2DBase< double, PointTag, LocalTag >::barePhi(), and ThirdHitPredictionFromInvParabola::rangeRPhi().
|
inline |
Azimuthal angle. The value is returned in radians, in the range (-pi,pi]. Same precision as the system atan2(x,y) function. The return type is Geom::Phi<T>, see it's documentation.
Definition at line 81 of file oldBasic2DVector.h.
|
inline |
Vector product, or "cross" product, with a vector of same type.
Definition at line 136 of file newBasic2DVector.h.
Referenced by Basic2DVector< TmpType >::cross().
|
inline |
Vector product, or "cross" product, with a vector of same type.
Definition at line 143 of file oldBasic2DVector.h.
|
inline |
Vector (or cross) product with a vector of different precision. The product is computed without loss of precision. The type of the returned scalar is the more precise of the scalar types of the two vectors.
Definition at line 144 of file newBasic2DVector.h.
|
inline |
Vector (or cross) product with a vector of different precision. The product is computed without loss of precision. The type of the returned scalar is the more precise of the scalar types of the two vectors.
Definition at line 151 of file oldBasic2DVector.h.
|
inline |
Scalar product, or "dot" product, with a vector of same type.
Definition at line 122 of file newBasic2DVector.h.
Referenced by Vector2DBase< float, GlobalTag >::dot(), Basic2DVector< TmpType >::dot(), operator*(), and InnerDeltaPhi::phiRange().
|
inline |
Scalar product, or "dot" product, with a vector of same type.
Definition at line 128 of file oldBasic2DVector.h.
|
inline |
Scalar (or dot) product with a vector of different precision. The product is computed without loss of precision. The type of the returned scalar is the more precise of the scalar types of the two vectors.
Definition at line 130 of file newBasic2DVector.h.
|
inline |
Scalar (or dot) product with a vector of different precision. The product is computed without loss of precision. The type of the returned scalar is the more precise of the scalar types of the two vectors.
Definition at line 136 of file oldBasic2DVector.h.
|
inline |
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition at line 69 of file newBasic2DVector.h.
Referenced by HelixBarrelCylinderCrossing::HelixBarrelCylinderCrossing(), ThirdHitPredictionFromCircle::invCenterOnAxis(), PV2DBase< double, PointTag, LocalTag >::mag(), HelixBarrelPlaneCrossingByCircle::pathLength(), InnerDeltaPhi::phiRange(), Basic2DVector< TmpType >::r(), TrackFitter::run(), PixelFitterByHelixProjections::run(), and Basic2DVector< TmpType >::unit().
|
inline |
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition at line 72 of file oldBasic2DVector.h.
|
inline |
The vector magnitude squared. Equivalent to vec.dot(vec)
Definition at line 66 of file newBasic2DVector.h.
Referenced by ThirdHitPredictionFromCircle::angle(), HelixBarrelPlaneCrossingByCircle::chooseSolution(), HelixBarrelCylinderCrossing::chooseSolution(), CircleFromThreePoints::init(), Basic2DVector< TmpType >::mag(), PV2DBase< double, PointTag, LocalTag >::mag2(), ThirdHitPredictionFromInvLine::MappedPoint< T >::MappedPoint(), ConformalMappingFit::MappedPoint< T >::MappedPoint(), ThirdHitPredictionFromCircle::phi(), ThirdHitPredictionFromInvParabola::transform(), ThirdHitPredictionFromInvParabola::transformBack(), and ThirdHitPredictionFromCircle::HelixRZ::zAtR().
|
inline |
The vector magnitude squared. Equivalent to vec.dot(vec)
Definition at line 69 of file oldBasic2DVector.h.
|
inline |
Definition at line 55 of file newBasic2DVector.h.
|
inline |
Definition at line 56 of file newBasic2DVector.h.
|
inline |
|
inline |
|
inline |
Operator += with a Basic2DVector of possibly different precision.
Definition at line 92 of file newBasic2DVector.h.
|
inline |
Operator += with a Basic2DVector of possibly different precision.
Definition at line 95 of file oldBasic2DVector.h.
|
inline |
Unary minus, returns a vector with components (-x(),-y(),-z())
Definition at line 106 of file newBasic2DVector.h.
|
inline |
Unary minus, returns a vector with components (-x(),-y(),-z())
Definition at line 111 of file oldBasic2DVector.h.
|
inline |
Operator -= with a Basic2DVector of possibly different precision.
Definition at line 100 of file newBasic2DVector.h.
|
inline |
Operator -= with a Basic2DVector of possibly different precision.
Definition at line 104 of file oldBasic2DVector.h.
|
inline |
|
inline |
|
inline |
Definition at line 79 of file newBasic2DVector.h.
Referenced by ThirdHitPredictionFromCircle::phi(), PV2DBase< double, PointTag, LocalTag >::phi(), and InnerDeltaPhi::phiRange().
|
inline |
Definition at line 82 of file oldBasic2DVector.h.
|
inline |
Radius, same as mag()
Definition at line 72 of file newBasic2DVector.h.
Referenced by PixelTripletLargeTipGenerator::hitTriplets(), and PV2DBase< double, PointTag, LocalTag >::r().
|
inline |
Radius, same as mag()
Definition at line 75 of file oldBasic2DVector.h.
|
inline |
Unit vector parallel to this. If mag() is zero, a zero vector is returned.
Definition at line 84 of file newBasic2DVector.h.
Referenced by InnerDeltaPhi::phiRange(), and TkRotation2D< double >::TkRotation2D().
|
inline |
Unit vector parallel to this. If mag() is zero, a zero vector is returned.
Definition at line 87 of file oldBasic2DVector.h.
|
inline |
Cartesian x coordinate.
Definition at line 60 of file newBasic2DVector.h.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Basic2DVector< TmpType >::barePhi(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), HelixBarrelPlaneCrossingByCircle::chooseSolution(), HelixBarrelCylinderCrossing::chooseSolution(), Basic2DVector< TmpType >::cross(), ThirdHitPredictionFromInvLine::crossing(), ThirdHitPredictionFromCircle::curvature(), Basic2DVector< TmpType >::dot(), ConformalMappingFit::findRot(), ClusterShapeTrackFilter::getGlobalDirs(), HelixBarrelCylinderCrossing::HelixBarrelCylinderCrossing(), HelixBarrelPlaneCrossing2OrderLocal::HelixBarrelPlaneCrossing2OrderLocal(), ThirdHitPredictionFromInvParabola::init(), CircleFromThreePoints::init(), ThirdHitPredictionFromCircle::invCenterOnAxis(), TkRotation< align::Scalar >::multiplyInverse(), TkRotation< align::Scalar >::operator*(), operator*(), operator+(), Basic2DVector< TmpType >::operator+=(), Basic2DVector< TmpType >::operator-(), operator-(), Basic2DVector< TmpType >::operator-=(), operator/(), Basic2DVector< TmpType >::phi(), geometryXMLparser.Alignable::pos(), HelixBarrelPlaneCrossingByCircle::position(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), ThirdHitPredictionFromCircle::HelixRZ::rAtZ(), TrackFitter::run(), PixelFitterByHelixProjections::run(), KFBasedPixelFitter::run(), TkRotation2D< double >::TkRotation2D(), and PV2DBase< double, PointTag, LocalTag >::x().
|
inline |
Cartesian x coordinate.
Definition at line 63 of file oldBasic2DVector.h.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().
|
inline |
Cartesian y coordinate.
Definition at line 63 of file newBasic2DVector.h.
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Basic2DVector< TmpType >::barePhi(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), HelixBarrelPlaneCrossingByCircle::chooseSolution(), HelixBarrelCylinderCrossing::chooseSolution(), Basic2DVector< TmpType >::cross(), ThirdHitPredictionFromInvLine::crossing(), ThirdHitPredictionFromCircle::curvature(), Basic2DVector< TmpType >::dot(), ConformalMappingFit::findRot(), ClusterShapeTrackFilter::getGlobalDirs(), HelixBarrelCylinderCrossing::HelixBarrelCylinderCrossing(), HelixBarrelPlaneCrossing2OrderLocal::HelixBarrelPlaneCrossing2OrderLocal(), ThirdHitPredictionFromInvParabola::init(), CircleFromThreePoints::init(), ThirdHitPredictionFromCircle::invCenterOnAxis(), TkRotation< align::Scalar >::multiplyInverse(), TkRotation< align::Scalar >::operator*(), operator*(), operator+(), Basic2DVector< TmpType >::operator+=(), Basic2DVector< TmpType >::operator-(), operator-(), Basic2DVector< TmpType >::operator-=(), operator/(), Basic2DVector< TmpType >::phi(), geometryXMLparser.Alignable::pos(), HelixBarrelPlaneCrossingByCircle::position(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), ThirdHitPredictionFromCircle::HelixRZ::rAtZ(), TrackFitter::run(), PixelFitterByHelixProjections::run(), KFBasedPixelFitter::run(), TkRotation2D< double >::TkRotation2D(), and PV2DBase< double, PointTag, LocalTag >::y().
|
inline |
Cartesian y coordinate.
Definition at line 66 of file oldBasic2DVector.h.
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().
|
private |
Definition at line 157 of file oldBasic2DVector.h.
Referenced by Basic2DVector< TmpType >::barePhi(), Basic2DVector< TmpType >::mag2(), Basic2DVector< TmpType >::operator*=(), Basic2DVector< TmpType >::operator+=(), Basic2DVector< TmpType >::operator-=(), Basic2DVector< TmpType >::operator/=(), Basic2DVector< TmpType >::phi(), and Basic2DVector< TmpType >::x().
|
private |
Definition at line 158 of file oldBasic2DVector.h.
Referenced by Basic2DVector< TmpType >::barePhi(), Basic2DVector< TmpType >::mag2(), Basic2DVector< TmpType >::operator*=(), Basic2DVector< TmpType >::operator+=(), Basic2DVector< TmpType >::operator-=(), Basic2DVector< TmpType >::operator/=(), Basic2DVector< TmpType >::phi(), and Basic2DVector< TmpType >::y().
mathSSE::Vec2<T> Basic2DVector< T >::v |
Definition at line 152 of file newBasic2DVector.h.
Referenced by Basic2DVector< TmpType >::cross(), Basic2DVector< TmpType >::dot(), Basic2DVector< TmpType >::mag2(), PV2DBase< double, PointTag, LocalTag >::mathVector(), Basic2DVector< TmpType >::mathVector(), operator*(), Basic2DVector< TmpType >::operator*=(), operator+(), Basic2DVector< TmpType >::operator+=(), Basic2DVector< TmpType >::operator-(), operator-(), Basic2DVector< TmpType >::operator-=(), operator/(), Basic2DVector< TmpType >::operator/=(), TkRotation2D< double >::rotate(), TkRotation2D< double >::rotateBack(), TkRotation2D< double >::TkRotation2D(), Basic2DVector< TmpType >::x(), and Basic2DVector< TmpType >::y().