sharee.bike-App/TINKLib/Model/PositionFactory.cs
Anja Müller-Meißner 0468955d49 Version 3.0.338
2022-09-08 09:55:14 +02:00

11 lines
291 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 NullPostion();
}
}