sharee.bike-App/TINKLib/Model/Map/MapSpanFactory.cs

12 lines
329 B
C#
Raw Normal View History

2022-01-22 18:16:10 +01:00

namespace TINK.Model.Map
{
public static class MapSpanFactory
{
public static IMapSpan Create(IPosition position = null, double radius = double.NaN)
=> MapSpan.GetIsValid(position, radius)
? new MapSpan(position, radius) as IMapSpan
: new NullMapSpan();
}
}