30 lines
509 B
Java
30 lines
509 B
Java
package com.xiang.common.pojo;
|
|
|
|
/**
|
|
* @Author: xiang
|
|
* @Date: 2026-05-07 15:57
|
|
*/
|
|
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* 轨迹点类
|
|
*/
|
|
@Data
|
|
public class TrackPoint {
|
|
public int x, y, t;
|
|
public String type;
|
|
|
|
public TrackPoint(int x, int y, int t, String type) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.t = t;
|
|
this.type = type;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.format("{\"x\":%d,\"y\":%d,\"t\":%d,\"type\":\"%s\"}", x, y, t, type);
|
|
}
|
|
}
|