Newer
Older
EPQ-3D-renderer / src / Point2D.java
@cory cory on 9 Nov 2022 407 bytes Implementation of:
import java.util.ArrayList;

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

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

}