public static final Geoshape circle ( final float latitude , final float longitude , final float radiusInKM ) { Preconditions . checkArgument ( isValidCoordinate ( latitude , longitude ) , "Invalid coordinate provided" ) ; Preconditions . checkArgument ( radiusInKM > 0 , "Invalid radius provided [%s]" , radiusInKM ) ; return new Geoshape ( new float [ ] [ ] { new float [ ] { latitude , Float . NaN } , new float [ ] { longitude , radiusInKM } } ) ; }
Constructs a circle from a given center point and a radius in kilometer