#include <CFCir.h>
Definition at line 3 of file CFCir.h.
◆ CFCir() [1/3]
◆ CFCir() [2/3]
| CFCir::CFCir |
( |
double | x, |
|
|
double | y, |
|
|
double | phi, |
|
|
int | n, |
|
|
double | centerX, |
|
|
double | centerY, |
|
|
double | centerR ) |
Definition at line 7 of file CFCir.cxx.
10 , _y( y )
11 , _phi( phi )
13 , _centerX( centerX )
14 , _centerY( centerY )
15 , _centerR( centerR ) {
16 double normal = ( y - _centerY ) / (
x - centerX );
17 double k = -1. / normal;
19 double x_cross = -b / ( k + 1 / k );
20 double y_cross = b / ( 1 + k * k );
21
22
23
24
25 double rho_temp = sqrt( x_cross * x_cross + y_cross * y_cross );
26 double theta_temp = atan2( y_cross, x_cross );
27 if ( theta_temp < 0 )
28 {
29 theta_temp = theta_temp +
M_PI;
30 rho_temp = -rho_temp;
31 }
32 if ( normal == 0 &&
x > 0 )
33 {
35 theta_temp = 0;
36 }
37 if ( normal == 0 &&
x < 0 )
38 {
39 rho_temp = -fabs(
x );
41 }
42 _theta = theta_temp;
43 _rho = rho_temp;
44 double slant = _y *
cos( _theta ) - _x *
sin( _theta );
45 _slant = slant;
46
47
48}
double sin(const BesAngle a)
double cos(const BesAngle a)
◆ CFCir() [3/3]
| CFCir::CFCir |
( |
const CFCir & | cir | ) |
|
Definition at line 74 of file CFCir.cxx.
75 : _x( cir._x )
76 , _y( cir._y )
77 , _phi( cir._phi )
78 , _n( cir._n )
79 ,
80
81 _theta( cir._theta )
82 , _rho( cir._rho )
83 , _centerX( cir._centerX )
84 , _centerY( cir._centerY )
85 , _centerR( cir._centerR )
86 , _slant( cir._slant ) {}
◆ getCenterR()
| double CFCir::getCenterR |
( |
| ) |
const |
|
inline |
◆ getCenterX()
| double CFCir::getCenterX |
( |
| ) |
const |
|
inline |
◆ getCenterY()
| double CFCir::getCenterY |
( |
| ) |
const |
|
inline |
◆ getn()
| int CFCir::getn |
( |
| ) |
const |
|
inline |
◆ getphi()
| double CFCir::getphi |
( |
| ) |
const |
|
inline |
◆ getRho()
| double CFCir::getRho |
( |
| ) |
const |
|
inline |
◆ getSlant()
| double CFCir::getSlant |
( |
| ) |
const |
|
inline |
◆ getTheta()
| double CFCir::getTheta |
( |
| ) |
const |
|
inline |
◆ getx()
| double CFCir::getx |
( |
| ) |
const |
|
inline |
◆ gety()
| double CFCir::gety |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 58 of file CFCir.cxx.
58 {
59 _x = cir._x;
60 _y = cir._y;
61 _phi = cir._phi;
62 _n = cir._n;
63
64 _theta = cir._theta;
65 _rho = cir._rho;
66 _centerX = cir._centerX;
67 _centerY = cir._centerY;
68 _centerR = cir._centerR;
69 _slant = cir._slant;
70
71 return *this;
72}
The documentation for this class was generated from the following files: