mirror of
https://github.com/geekwenjie/SmartJavaAI.git
synced 2026-09-11 12:19:04 +00:00
42 lines
688 B
Java
42 lines
688 B
Java
package cn.smartjavaai.common.entity;
|
|
|
|
import ai.djl.util.JsonUtils;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* 点
|
|
* @author dwj
|
|
*/
|
|
public class Point implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
private double x;
|
|
private double y;
|
|
|
|
public Point(double x, double y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
public double getX() {
|
|
return x;
|
|
}
|
|
|
|
public void setX(double x) {
|
|
this.x = x;
|
|
}
|
|
|
|
public double getY() {
|
|
return y;
|
|
}
|
|
|
|
public void setY(double y) {
|
|
this.y = y;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return JsonUtils.GSON_COMPACT.toJson(this);
|
|
}
|
|
}
|