Newer
Older
PureATN_M / src / main / java / cit / PureATN / IPoint.java
@motoki miura motoki miura on 10 May 2022 345 bytes first
package cit.PureATN;

public class IPoint {
	int x1, y1;
	long epoch;

	IPoint(int x, int y){
		x1 = x;
		y1 = y;
//		this.x2 = x2;
//		this.y2 = y2;
		epoch = System.currentTimeMillis();	
	}
	public int[] toIntAry(long base_epoch){
		int[] ret = new int[3];
		ret[0] = x1;
		ret[1] = y1;
		ret[2] = (int)(epoch - base_epoch);
		return ret;
	}
}