Polygon
class Polygon implements PolygonInterface, Countable, IteratorAggregate, ArrayAccess, JsonSerializable
Constants
TYPE |
|
Properties
protected CoordinatesCollection | $coordinates | ||
protected Bounds | $bounds | ||
protected bool | $hasCoordinate | ||
protected int | $precision |
Methods
No description
No description
Returns a collection containing the values of all the vertices for this geometry.
No description
No description
No description
No description
No description
No description
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Details
at line 34
__construct(null|array|CoordinatesCollection $coordinates = null)
No description
at line 55
string
getGeometryType()
No description
at line 63
CoordinatesInterface
getCoordinate()
No description
at line 71
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 79
setCoordinates(CoordinatesCollection $coordinates)
{@inheritdoc}
at line 90
int
getPrecision()
No description
at line 99
$this
setPrecision(int $precision)
No description
at line 110
Bounds
getBounds()
No description
at line 119
$this
setBounds(Bounds $bounds)
No description
at line 130
get($key)
No description
at line 135
put($key, CoordinatesInterface $coordinate = null)
No description
at line 159
push(CoordinatesInterface $coordinate)
No description
at line 168
forget($key)
No description
at line 181
bool
pointInPolygon(CoordinatesInterface $coordinate)
No description
at line 202
protected bool
pointOnBoundary(CoordinatesInterface $coordinate)
No description
at line 300
protected bool
pointOnVertex(CoordinatesInterface $coordinate)
No description
at line 322
protected bool
pointIsInside(CoordinatesInterface $coordinate)
No description
at line 360
bool
isEmpty()
No description
at line 368
array
toArray()
No description
at line 376
jsonSerialize()
{@inheritdoc}
at line 384
offsetExists($offset)
{@inheritdoc}
at line 392
offsetGet($offset)
{@inheritdoc}
at line 400
offsetSet($offset, $value)
{@inheritdoc}
at line 409
offsetUnset($offset)
{@inheritdoc}
at line 420
count()
{@inheritdoc}
at line 428
getIterator()
{@inheritdoc}