5b1e29432b
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6649 542714f4-19e9-0310-aa3c-eee0fc999fb1
31 lines
512 B
Java
31 lines
512 B
Java
package com.threerings.geom;
|
|
|
|
/**
|
|
* A very simple representation of the geometric concept, because sometimes we can't use awt.
|
|
*/
|
|
public class Point
|
|
{
|
|
/** The x-coordinate. */
|
|
public int x;
|
|
|
|
/** The y-coordinate. */
|
|
public int y;
|
|
|
|
public Point ()
|
|
{
|
|
this(0, 0);
|
|
}
|
|
|
|
public Point (int x, int y)
|
|
{
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
@Override
|
|
public String toString ()
|
|
{
|
|
return getClass().getName() + "[x=" + x + ",y=" + y + "]";
|
|
}
|
|
}
|