ly/Model/BasePoint.cs

35 lines
781 B
C#
Raw Permalink Normal View History

2025-03-22 12:16:22 +00:00
namespace LY.App.Model
{
public struct BasePoint
{
public BasePoint(double x, double y, double z, string time = null)
{
this.X = x;
this.Y = y;
this.Z = z;
this.Time = time;
}
public double X { get; set; }
public double Y { get; set; }
/// <summary>
/// 高度
/// </summary>
public double Z { get; set; }
public string Time { get; set; }
/// <summary>
/// 两点值是否相等
/// </summary>
/// <param name="basePoint"></param>
/// <returns></returns>
public bool Equal(BasePoint basePoint)
{
return basePoint.X == this.X && basePoint.Y == this.Y;
}
}
}