source: proiecte/SolarSim/Java/SolarSim/src/solarsim/common/Vector.java @ 152

Last change on this file since 152 was 152, checked in by (none), 14 years ago
File size: 437 bytes
Line 
1package solarsim.common;
2
3/**
4 * Clasa ce modeleaza un vector in trei dimensiuni.
5 * @author Marius Ion
6 */
7public class Vector {
8    public double x;
9    public double y;
10    public double z;
11
12    public Vector(){}
13
14    public Vector(double x, double y, double z) {
15        this.x = x;
16        this.y = y;
17        this.z = z;
18    }
19
20    @Override
21    public String toString() {
22        return "(" + x + "," + y + "," + z + ")";
23    }
24}
Note: See TracBrowser for help on using the repository browser.