From 906e2586e2e6e95830f93b50f8c5233189007715 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 16 十一月 2023 14:18:33 +0800 Subject: [PATCH] 完成坡度分析开发 --- src/main/java/com/moon/server/entity/data/PointEntity.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/moon/server/entity/data/PointEntity.java b/src/main/java/com/moon/server/entity/data/PointEntity.java index 7e299ac..098b467 100644 --- a/src/main/java/com/moon/server/entity/data/PointEntity.java +++ b/src/main/java/com/moon/server/entity/data/PointEntity.java @@ -1,5 +1,7 @@ package com.moon.server.entity.data; +import com.moon.server.helper.WebHelper; + /** * 鐐瑰疄浣撶被 * @author WWW @@ -16,9 +18,9 @@ } public PointEntity(double x, double y, double val) { - this.x = x; - this.y = y; - this.val = val; + this.x = WebHelper.round(x, 6); + this.y = WebHelper.round(y, 6); + this.val = WebHelper.round(val, 2); } public double getX() { -- Gitblit v1.9.3