sharee.bike-App/TINKLib/Model/NullPostion.cs

18 lines
330 B
C#
Raw Normal View History

2023-04-19 12:14:14 +02:00
2022-01-22 18:16:10 +01:00
namespace TINK.Model
{
2023-04-19 12:14:14 +02:00
public class NullPosition : IPosition
2022-09-06 16:08:19 +02:00
{
2023-04-19 12:14:14 +02:00
internal NullPosition() { }
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
public double Latitude => double.NaN;
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
public double Longitude => double.NaN;
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
public bool IsValid => Position.GetIsValid(Latitude, Longitude);
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
public bool Equals(IPosition other)
=> Position.GetEquals(this, other);
}
2022-01-22 18:16:10 +01:00
}