38 lines
464 B
Java
38 lines
464 B
Java
package org.solovyev.util.math;
|
|
|
|
public class Point2d {
|
|
|
|
private float x = 0;
|
|
|
|
private float y = 0;
|
|
|
|
public Point2d() {
|
|
}
|
|
|
|
public Point2d( float x, float y ) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
public float getX() {
|
|
return x;
|
|
}
|
|
|
|
public void setX(float x) {
|
|
this.x = x;
|
|
}
|
|
|
|
public float getY() {
|
|
return y;
|
|
}
|
|
|
|
public void setY(float y) {
|
|
this.y = y;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Point2d [x=" + x + ", y=" + y + "]";
|
|
}
|
|
}
|