skyscraper8/skyscraper8/Skyscraper/Math/SpatialReferenceWithHeight.cs
feyris-tan a7b89f2fac
Some checks failed
🚀 Pack skyscraper8 / make-zip (push) Failing after 1m36s
Patches for passing RCS2 data to the UI.
2026-03-22 21:52:14 +01:00

36 lines
809 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace skyscraper8.Skyscraper.Math
{
public struct SpatialReferenceWithHeight
{
public SpatialReferenceWithHeight(double latitude, double longitude, double height)
{
Latitude = latitude;
Longitude = longitude;
Height = height;
}
public double Latitude { get; set; }
public double Longitude { get; set; }
public double Height { get; set; }
public override bool Equals(object? obj)
{
return obj is SpatialReferenceWithHeight height &&
Latitude == height.Latitude &&
Longitude == height.Longitude &&
Height == height.Height;
}
public override int GetHashCode()
{
return HashCode.Combine(Latitude, Longitude, Height);
}
}
}