mirror of
https://github.com/octoleo/plantuml.git
synced 2024-06-11 20:52:24 +00:00
36 lines
500 B
Java
36 lines
500 B
Java
package zext.plantuml.com.ctreber.acearth.util;
|
|
|
|
/**
|
|
* <p>A point in a 2 axis space.
|
|
*
|
|
* <p>© 2002 Christian Treber, ct@ctreber.com
|
|
* @author Christian Treber, ct@ctreber.com
|
|
*
|
|
*/
|
|
public class Point2D
|
|
{
|
|
private double fX;
|
|
private double fY;
|
|
|
|
public Point2D(double pX, double pY)
|
|
{
|
|
fX = pX;
|
|
fY = pY;
|
|
}
|
|
|
|
public double getX()
|
|
{
|
|
return fX;
|
|
}
|
|
|
|
public double getY()
|
|
{
|
|
return fY;
|
|
}
|
|
|
|
public String toString()
|
|
{
|
|
return "x: " + fX + ", y: " + fY;
|
|
}
|
|
}
|