Belle II Software development
Circle2D Class Reference

2D circle. More...

#include <Circle2D.h>

Inheritance diagram for Circle2D:
Arc2D

Public Member Functions

 Circle2D (double x, double y, double radius)
 Constructor.
 
 ~Circle2D ()
 Destructor.
 
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.
 

Detailed Description

2D circle.

Definition at line 25 of file Circle2D.h.

Constructor & Destructor Documentation

◆ Circle2D()

Circle2D ( double  x,
double  y,
double  radius 
)

Constructor.

Parameters
[in]xCenter X coordinate.
[in]yCenter Y coordinate.
[in]radiusRadius.

Definition at line 14 of file Circle2D.cc.

14 :
15 m_Center(x, y, 0),
16 m_Radius(radius)
17{
18}
HepGeom::Point3D< double > m_Center
Center.
Definition: Circle2D.h:61
double m_Radius
Radius.
Definition: Circle2D.h:64

◆ ~Circle2D()

~Circle2D ( )

Destructor.

Definition at line 20 of file Circle2D.cc.

21{
22}

Member Function Documentation

◆ getCenter()

const HepGeom::Point3D< double > & getCenter ( ) const
inline

Get center.

Definition at line 45 of file Circle2D.h.

46 {
47 return m_Center;
48 }

◆ getRadius()

double getRadius ( ) const
inline

Get radius.

Definition at line 53 of file Circle2D.h.

54 {
55 return m_Radius;
56 }

Member Data Documentation

◆ m_Center

HepGeom::Point3D<double> m_Center
protected

Center.

Definition at line 61 of file Circle2D.h.

◆ m_Radius

double m_Radius
protected

Radius.

Definition at line 64 of file Circle2D.h.


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