7CFCir::CFCir(
double x,
double y,
double phi,
int n,
double centerX,
double 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 );
25 double rho_temp = sqrt( x_cross * x_cross + y_cross * y_cross );
26 double theta_temp = atan2( y_cross, x_cross );
29 theta_temp = theta_temp +
M_PI;
32 if ( normal == 0 && x > 0 )
37 if ( normal == 0 && x < 0 )
39 rho_temp = -fabs( x );
44 double slant = _y *
cos( _theta ) - _x *
sin( _theta );
83 , _centerX( cir._centerX )
84 , _centerY( cir._centerY )
85 , _centerR( cir._centerR )
86 , _slant( cir._slant ) {}