8CFCir::CFCir(
double x,
double y,
double phi,
int n,
double centerX,
double centerY,
double centerR):_x(
x),_y(
y),_phi(phi),_n(
n),_centerX(centerX),_centerY(centerY),_centerR(centerR)
10 double normal = (
y-_centerY)/(
x-centerX);
11 double k = -1./normal;
13 double x_cross = -
b/(k+1/k);
14 double y_cross =
b/(1+k*k);
19 double rho_temp=sqrt(x_cross*x_cross+y_cross*y_cross);
20 double theta_temp=atan2(y_cross,x_cross);
22 theta_temp=theta_temp+
M_PI;
25 if( normal ==0 &&
x>0) {
29 if( normal ==0 &&
x<0) {
35 double slant = _y*
cos(_theta)-_x*
sin(_theta);
57 _centerX =cir._centerX;
58 _centerY =cir._centerY;
59 _centerR =cir._centerR;
71 _centerX(cir._centerX),
72 _centerY(cir._centerY),
73 _centerR(cir._centerR),
double sin(const BesAngle a)
double cos(const BesAngle a)
CFCir & operator=(const CFCir &)