Skip to content
Snippets Groups Projects
Code owners
Point2D.java 486 B
package object_detection.types;

public class Point2D {

    private float x;
    private float y;
    private int idx;

    public Point2D(float x, float y, int idx){
        this.x = x;
        this.y = y;
        this.idx = idx;
    }

    public float getY() {
        return y;
    }

    public float getX() {
        return x;
    }

    public int getIdx() {
        return idx;
    }

    @Override
    public String toString(){
        return "{"+ x + ", " + y + "}";
    }
}