Newer
Older
EPQ-3D-renderer / src / Point2D.java
@cory cory on 3 Nov 2022 427 bytes Initial implementation
import java.util.ArrayList;

public class Point2D {
    public double x;
    public double y;
    public Point2D(double _x, double _y){
        x = _x;
        y = _y;
    }
    public void set(double _x, double _y){
        x = _x;
        y = _y;
    }
    public double[] get(){
        return new double[]{x, y};
    }

    public int intX(){return (int)Math.round(x);}
    public int intY(){return (int)Math.round(y);}

}