-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathcircle.h
36 lines (28 loc) · 885 Bytes
/
circle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef CIRCLE_H
#define CIRCLE_H
//
// circle.h
//
/************************************************************************
DECLARATION OF THE CLASS CIRCLE
************************************************************************/
// Class for Circle
// A circle has 7 fields:
// a, b, r (of type reals), the circle parameters
// s (of type reals), the estimate of sigma (standard deviation)
// g (of type reals), the norm of the gradient of the objective function
// i and j (of type int), the iteration counters (outer and inner, respectively)
class Circle
{
public:
// The fields of a Circle
double a, b, r, s, g, Gx, Gy;
int i, j;
// constructors
Circle();
Circle(double aa, double bb, double rr);
// routines
void print(void);
// no destructor we didn't allocate memory by hand.
};
#endif // CIRCLE_H