-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrack.h
More file actions
executable file
·48 lines (38 loc) · 1.03 KB
/
crack.h
File metadata and controls
executable file
·48 lines (38 loc) · 1.03 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef CRACK_H
#define CRACK_H
#include <stddef.h>
#include "params.h"
using namespace std;
/**
@file crack.h
\brief Defines a crack in terms of 2D ellipses.
*/
class Crack {
protected:
void clear();
void copy(Crack const & source);
public:
float * c; ///< Holds the coordinates of the center of the ellipse
float * a; ///< Holds the lengths of the major and minor axes of the ellipse
float * trig; ///< Holds the sine and cosine of the angle the major axis of the ellipse makes with the problem's x axis
int dim; ///< Obsolete. Is generally equal to DIM from params.h
Crack(); //: Crack(2) {}
void setter(float, float,float, float,float, float);
void setter(Crack &);
float inside(float* R);
virtual ~Crack();
Crack(Crack const & source);
Crack const & operator=(Crack const & other);
void print_info();
};
class Cracklist : public Crack{
public:
int n_cracks; ///< Number of cracks in the Cracklist
Crack* listofCracks;
Crack & operator[](int);
Cracklist(int);
Cracklist();
Cracklist(Crack&);
~Cracklist();
} ;
#endif