class Circle implements CircleInterface

Constants

TYPE

Properties

protected CoordinatesInterface $coordinate
protected int $radius
protected string $unit

The user unit.

protected int $precision

Methods

__construct(null|array|Coordinates $coordinate, int $radius)

No description

getRadius()

No description

string
getGeometryType()

Returns the geometry type.

int
getPrecision()

Returns the precision of the geometry.

$this
setPrecision(int $precision)

No description

getCoordinate()

Returns a vertex of this Geometry (usually, but not necessarily, the first one).

getCoordinates()

Returns a collection containing the values of all the vertices for this geometry.

setCoordinates(CoordinatesCollection $coordinates)

{@inheritdoc}

bool
isEmpty()

Returns true if the geometry is empty.

distanceUnit($unit)

No description

pointInRadius(CoordinatesInterface $coordinate)

No description

getBounds()

Returns the bounding box of the Geometry

Details

at line 37
__construct(null|array|Coordinates $coordinate, int $radius)

No description

Parameters

null|array|Coordinates $coordinate
int $radius

at line 53
getRadius()

No description

at line 63
string getGeometryType()

Returns the geometry type.

Return Value

string

at line 73
int getPrecision()

Returns the precision of the geometry.

Return Value

int

at line 82
$this setPrecision(int $precision)

No description

Parameters

int $precision

Return Value

$this

at line 89
CoordinatesInterface getCoordinate()

Returns a vertex of this Geometry (usually, but not necessarily, the first one).

The returned coordinate should not be assumed to be an actual Coordinate object used in the internal representation.

Return Value

CoordinatesInterface

if there's a coordinate in the collection

at line 97
CoordinatesCollection getCoordinates()

Returns a collection containing the values of all the vertices for this geometry.

If the geometry is a composite, the array will contain all the vertices for the components, in the order in which the components occur in the geometry.

Return Value

CoordinatesCollection

the vertices of this Geometry

at line 105
setCoordinates(CoordinatesCollection $coordinates)

{@inheritdoc}

Parameters

CoordinatesCollection $coordinates

at line 122
bool isEmpty()

Returns true if the geometry is empty.

Return Value

bool

at line 129
distanceUnit($unit)

No description

Parameters

$unit

at line 140
pointInRadius(CoordinatesInterface $coordinate)

No description

Parameters

CoordinatesInterface $coordinate

at line 157
Bounds getBounds()

Returns the bounding box of the Geometry

Return Value

Bounds