Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

public class test {
    public static void main(String[] args) {
        Vec2 v = new Vec2(2.0,2.4);

        System.out.println(v);
    }
}

class Vec2 {
    public double x = 0.0;
    public double y = 0.0;

    public Vec2(double x,double y) {
        this.x = x;
        this.y = y;
    }
}