summaryrefslogtreecommitdiffstats
path: root/Imaginary.java
blob: 6dd0fd62e643e6f7708d3c9cb2a872ab10924630 (plain)
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
class Imaginary {
	double real;
	double imaginary;

	public Imaginary() {
		this.real = 0;
		this.imaginary = 0;
	}

	public Imaginary(double r, double i) {
		this.real = r;
		this.imaginary = i;
	}

	public double getReal() {
		return this.real;
	}

	public double getImaginary() {
		return this.imaginary;
	}

	public void setReal(double r) {
		this.real = r;
	}

	public void setImaginary(double i) {
		this.imaginary = i;
	}
}