2022-01-22 18:16:10 +01:00
|
|
|
|
|
|
|
|
|
namespace TINK.Model
|
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public class NullPostion : IPosition
|
|
|
|
|
{
|
|
|
|
|
internal NullPostion() { }
|
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
|
|
|
|
}
|