 |
Belle II Software
release-05-02-19
|
11 #include <tracking/trackFindingCDC/geometry/Vector2D.h>
13 #include <tracking/trackFindingCDC/numerics/ERightLeft.h>
14 #include <tracking/trackFindingCDC/numerics/ERotation.h>
15 #include <tracking/trackFindingCDC/numerics/ESign.h>
24 namespace TrackFindingCDC {
171 return connection.
unit();
void setSecond(const double second)
Setter for the second coordinate.
Vector2D orthogonal() const
Orthogonal vector to the counterclockwise direction.
double arcLengthBetween(const Vector2D &from, const Vector2D &to) const
Calculates the arc length between two points of closest approach on the circle.
Vector2D unit() const
Returns a unit vector colaligned with this.
double normalizeTo(const double toLength)
Normalizes the vector to the given length.
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
Vector2D closest(const Vector2D &point) const
Calculates the point of closest approach on the line to the point.
Circle2D()
Default constructor for ROOT compatibility. Creates an invalid circle.
double normSquared() const
Calculates .
Circle2D conformalTransformed() const
Returns a copy of the circle in conformal space.
ERightLeft isRightOrLeft(const Vector2D &point) const
Return if the point given is right or left of the line.
double impact() const
Returns the signed distance to the origin.
double second() const
Getter for the second coordinate.
Vector2D normal(const Vector2D &point) const
Normal vector to the circle near the given position.
void moveBy(const Vector2D &by)
Activelly moves the circle in the direction given in place by the vector given.
void passiveMoveAlongFirst(const double first)
Passivelly move the coordinate system in place along the first coordinate.
void moveAlongFirst(const double first)
Activelly moves the circle in the direction given in place along the first coordinate.
double radiusSquared() const
Getter for the squared radius.
A two dimensional circle in its natural representation using center and radius as parameters.
Vector2D tangential() const
Gives the tangential vector at the closest approach to the origin / at the perigee.
double phi() const
Gives the azimuth angle being the angle to the x axes ( range -M_PI to M_PI )
double radius() const
Getter for the signed radius.
void setFirst(const double first)
Setter for the first coordinate.
double m_radius
Memory for the signed radius.
double first() const
Getter for the first coordinate.
double distance(const Vector2D &point) const
Calculates the signed distance of the point to the circle line.
double absDistance(const Vector2D &point) const
Returns the euclidian distance of the point to the circle line.
void moveAlongSecond(const double second)
Activelly moves the circle in the direction given in place along the second coordinate.
Circle2D reversed() const
Returns a copy of the line with the reversed orientation.
double tangentialPhi() const
Gives to azimuth phi of the direction of flight at the perigee.
ERotation orientation() const
Indicates if the circle is to be interpreted counterclockwise or clockwise.
void passiveMoveBy(const Vector2D &by)
Passivelly move the coordinate system in place by the given vector.
void reverse()
Flips orientation the circle in place.
Abstract base class for different kinds of events.
double openingAngle(const Vector2D &from, const Vector2D &to) const
Calculates the angle between two points as seen from the center of the circle.
bool isRight(const Vector2D &rhs) const
Return if the point given is right of the circle line.
Vector2D perigee() const
Returns the point closest to the origin.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
ERotation
Enumeration to represent the distinct possibilities of the right left passage information.
Vector2D gradient(const Vector2D &point) const
Gradient of the distance field.
void passiveMoveAlongSecond(const double second)
Passivelly move the coordinate system in place along the second coordinate.
bool isLeft(const Vector2D &rhs) const
Return if the point given is left of the circle line.
Vector2D center() const
Getter for the central point of the circle.
void conformalTransform()
Transforms the circle to conformal space inplace.
Vector2D m_center
Memory for the central point.
double absRadius() const
Getter for the absolute radius.
double angleWith(const Vector2D &rhs) const
The angle between this and rhs.