Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.github.skittishSloth.openSkies.maps.generation.voronoi; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.math.Vector2; import java.awt.Point; /** * * @author mcory01 */ public class Site { public Site(final int x, final int y) { this.x = x; this.y = y; } public int getX() { return x; } public int getY() { return y; } public Vector2 toVector() { return new Vector2(x, y); } public Point toPoint() { return new Point(x, y); } private final int x, y; }