Newer
Older
JumpingGame / src / main / java / entities / Vec2.java
k-fujii on 15 Nov 2021 677 bytes entity→entitiesに変更
package entities;

//---------------------------------------------------------------
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();
    }
    //---------------------------------------------------------------
}