-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hinge.h
47 lines (36 loc) · 945 Bytes
/
Hinge.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
37
38
39
40
41
42
43
44
45
46
/*
* Hinge.h
* GBG - Proj #4 - Springy Mesh
*
*/
#ifndef _HINGE_H_
#define _HINGE_H_
#include <iostream>
#include <cstdlib>
class Hinge {
private:
double A0;
double K;
int X0;
int X1;
int X2;
int X3;
public:
Hinge();
Hinge(double a0, double k, int x0, int x1, int x2, int x3);
void SetHinge(double a0, double k, int x0, int x1, int x2, int x3);
void SetA0(double a0) { A0 = a0; }
void SetX0(int x0) { X0 = x0; }
void SetX1(int x1) { X1 = x1; }
void SetX2(int x2) { X2 = x2; }
void SetX3(int x3) { X3 = x3; }
void SetK(double k) { K = k; }
double GetA0() { return A0; }
int GetX0() { return X0; }
int GetX1() { return X1; }
int GetX2() { return X2; }
int GetX3() { return X3; }
double GetK() { return K; }
void PrintHinge(); // debugging
};
#endif