sharee.bike-App/TINKLib/Model/PositionFactory.cs
2023-04-19 12:14:14 +02:00

11 lines
292 B
C#

namespace TINK.Model
{
public static class PositionFactory
{
public static IPosition Create(double latitude = double.NaN, double longitude = double.NaN)
=> Position.GetIsValid(longitude, latitude)
? new Position(latitude, longitude) as IPosition
: new NullPosition();
}
}