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

12 lines
278 B
C#
Raw Normal View History

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

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