public final class TurfTransformation
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.mapbox.geojson.Polygon |
circle(com.mapbox.geojson.Point center,
double radius)
Takes a
Point and calculates the circle polygon given a radius in degrees, radians,
miles, or kilometers; and steps for precision. |
static com.mapbox.geojson.Polygon |
circle(com.mapbox.geojson.Point center,
double radius,
int steps,
java.lang.String units)
Takes a
Point and calculates the circle polygon given a radius in the
provided TurfConstants.TurfUnitCriteria; and steps for precision. |
static com.mapbox.geojson.Polygon |
circle(com.mapbox.geojson.Point center,
double radius,
java.lang.String units)
Takes a
Point and calculates the circle polygon given a radius in the
provided TurfConstants.TurfUnitCriteria; and steps for precision. |
public static com.mapbox.geojson.Polygon circle(@NonNull
com.mapbox.geojson.Point center,
double radius)
Point and calculates the circle polygon given a radius in degrees, radians,
miles, or kilometers; and steps for precision. This uses the DEFAULT_STEPS and
TurfConstants.UNIT_DEFAULT values.center - a Point which the circle will center aroundradius - the radius of the circlePolygon which represents the newly created circlepublic static com.mapbox.geojson.Polygon circle(@NonNull
com.mapbox.geojson.Point center,
double radius,
java.lang.String units)
Point and calculates the circle polygon given a radius in the
provided TurfConstants.TurfUnitCriteria; and steps for precision. This
method uses the DEFAULT_STEPS.center - a Point which the circle will center aroundradius - the radius of the circleunits - one of the units found inside TurfConstants.TurfUnitCriteriaPolygon which represents the newly created circlepublic static com.mapbox.geojson.Polygon circle(@NonNull
com.mapbox.geojson.Point center,
double radius,
int steps,
java.lang.String units)
Point and calculates the circle polygon given a radius in the
provided TurfConstants.TurfUnitCriteria; and steps for precision.center - a Point which the circle will center aroundradius - the radius of the circlesteps - number of steps which make up the circle parameterunits - one of the units found inside TurfConstants.TurfUnitCriteriaPolygon which represents the newly created circle