package entity; //--------------------------------------------------------------- public class Vec2 extends Pair<Double> { //--------------------------------------------------------------- //--------------------------------------------------------------- public Vec2(double x, double y) { super(x, y); } //--------------------------------------------------------------- //--------------------------------------------------------------- public Double getX() { return this.getFirst(); } public Double getY() { return this.getSecond(); } //--------------------------------------------------------------- }