Belle II Software  release-08-01-10
Arc2D Class Reference

2D arc. More...

#include <Arc2D.h>

Inheritance diagram for Arc2D:
Collaboration diagram for Arc2D:

Public Member Functions

 Arc2D (double x, double y, double radius, double angle1, double angle2)
 Constructor. More...
 
 ~Arc2D ()
 Destructor.
 
bool angleWithinRange (double angle) const
 Check if angle is within the arc. More...
 
HepGeom::Point3D< double > getInitialPoint () const
 Get initial point.
 
const HepGeom::Point3D< double > & getCenter () const
 Get center.
 
double getRadius () const
 Get radius.
 

Protected Attributes

HepGeom::Point3D< double > m_Center
 Center.
 
double m_Radius
 Radius.
 

Private Attributes

double m_Angle1
 Angle 1.
 
double m_Angle2
 Angle 2.
 

Detailed Description

2D arc.

Definition at line 25 of file Arc2D.h.

Constructor & Destructor Documentation

◆ Arc2D()

Arc2D ( double  x,
double  y,
double  radius,
double  angle1,
double  angle2 
)

Constructor.

Parameters
[in]xCenter X coordinate.
[in]yCenter Y coordinate.
[in]radiusRadius.
[in]angle1Angle 1.
[in]angle2Angle 2.

Values of angles must be from -M_PI to M_PI (as returned by atan2()).

Definition at line 14 of file Arc2D.cc.

15  :
16  Circle2D(x, y, radius),
17  m_Angle1(angle1),
18  m_Angle2(angle2)
19 {
20 }
double m_Angle2
Angle 2.
Definition: Arc2D.h:63
double m_Angle1
Angle 1.
Definition: Arc2D.h:60
Circle2D(double x, double y, double radius)
Constructor.
Definition: Circle2D.cc:14

Member Function Documentation

◆ angleWithinRange()

bool angleWithinRange ( double  angle) const

Check if angle is within the arc.

Parameters
[in]angleAngle from -M_PI to M_PI.

Definition at line 26 of file Arc2D.cc.


The documentation for this class was generated from the following files: