Newer
Older
EPQ-3D-renderer / src / main / java / uk / org / floop / epq3d / Point2D.java
@cory cory on 2 Feb 2023 421 bytes Fix #17
package uk.org.floop.epq3d;

public class Point2D {
    public int x;
    public int y;
    public double z;
    // contains a Z value so that projected points can have their Z values calculated efficiently
    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};
    }

}