This commit is contained in:
2026-05-05 10:32:01 +08:00
parent 56e2a417e9
commit 8e42aa624e

View File

@@ -205,8 +205,8 @@ namespace 头罩视野.Views
//2. 调用CalculateEllipseArea传入两个参数
double area = GetArea.CalculateEllipseArea(lightData, _lightPositions);
totalArea += area;
double bottomViewAngle = GetArea.CalculateBottomViewAngle(lightData, _lightPositions);
totalBottomViewAngle += bottomViewAngle;
//double bottomViewAngle = GetArea.CalculateBottomViewAngle(lightData, _lightPositions);
//totalBottomViewAngle += bottomViewAngle;
}
UpdateVisionResults(totalArea, totalBottomViewAngle);
}
@@ -236,8 +236,8 @@ namespace 头罩视野.Views
}
//// 4. 计算下方视野面积
int botViAnInt = (int)Math.Round(BotViAn);
xfsyarea.Text = botViAnInt.ToString("0.0"); // 下方视野
//int botViAnInt = (int)Math.Round(BotViAn);
//xfsyarea.Text = botViAnInt.ToString("0.0"); // 下方视野
// 5. 计算视野保存率(双目)
if (double.TryParse(smsyarea.Text, out double totalAreaForRate))