Circle
class Circle implements CircleInterface
Constants
TYPE |
|
Properties
protected CoordinatesInterface | $coordinate | ||
protected int | $radius | ||
protected string | $unit | The user unit. |
|
protected int | $precision |
Methods
No description
Returns the geometry type.
Returns the precision of the geometry.
No description
Returns a vertex of this Geometry
(usually, but not necessarily, the first one).
Returns a collection containing the values of all the vertices for this geometry.
Returns true if the geometry is empty.
No description
Details
at line 37
__construct(null|array|Coordinates $coordinate, int $radius)
No description
at line 53
getRadius()
No description
at line 63
string
getGeometryType()
Returns the geometry type.
at line 73
int
getPrecision()
Returns the precision of the geometry.
at line 82
$this
setPrecision(int $precision)
No description
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.
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.
at line 105
setCoordinates(CoordinatesCollection $coordinates)
{@inheritdoc}
at line 122
bool
isEmpty()
Returns true if the geometry is empty.
at line 129
distanceUnit($unit)
No description
at line 140
pointInRadius(CoordinatesInterface $coordinate)
No description
at line 157
Bounds
getBounds()
Returns the bounding box of the Geometry