public class OctagonalEnvelope extends Object
Geometry
which is in the shape of a general octagon.
The OctagonalEnvelope of a geometric object
is a geometry which is a tight bound
along the (up to) four extremal rectilinear parallels
and along the (up to) four extremal diagonal parallels.
Depending on the shape of the contained
geometry, the octagon may be degenerate to any extreme
(e.g. it may be a rectangle, a line, or a point).Constructor and Description |
---|
OctagonalEnvelope()
Creates a new null bounding octagon
|
OctagonalEnvelope(Coordinate p)
Creates a new null bounding octagon bounding a
Coordinate |
OctagonalEnvelope(Coordinate p0,
Coordinate p1)
Creates a new null bounding octagon bounding a pair of
Coordinate s |
OctagonalEnvelope(Envelope env)
Creates a new null bounding octagon bounding an
Envelope |
OctagonalEnvelope(Geometry geom)
Creates a new null bounding octagon bounding a
Geometry |
OctagonalEnvelope(OctagonalEnvelope oct)
Creates a new null bounding octagon bounding an
OctagonalEnvelope
(the copy constructor). |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(OctagonalEnvelope other) |
void |
expandBy(double distance) |
OctagonalEnvelope |
expandToInclude(Coordinate p) |
OctagonalEnvelope |
expandToInclude(CoordinateSequence seq) |
OctagonalEnvelope |
expandToInclude(double x,
double y) |
OctagonalEnvelope |
expandToInclude(Envelope env) |
void |
expandToInclude(Geometry g) |
OctagonalEnvelope |
expandToInclude(OctagonalEnvelope oct) |
double |
getMaxA() |
double |
getMaxB() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinA() |
double |
getMinB() |
double |
getMinX() |
double |
getMinY() |
boolean |
intersects(Coordinate p) |
boolean |
intersects(OctagonalEnvelope other) |
boolean |
isNull() |
static Geometry |
octagonalEnvelope(Geometry geom)
Gets the octagonal envelope of a geometry
|
void |
setToNull()
Sets the value of this object to the null value
|
Geometry |
toGeometry(GeometryFactory geomFactory) |
public OctagonalEnvelope()
public OctagonalEnvelope(Coordinate p)
Coordinate
p
- the coordinate to boundpublic OctagonalEnvelope(Coordinate p0, Coordinate p1)
Coordinate
sp0
- a coordinate to boundp1
- a coordinate to boundpublic OctagonalEnvelope(Envelope env)
Envelope
public OctagonalEnvelope(OctagonalEnvelope oct)
OctagonalEnvelope
(the copy constructor).public static Geometry octagonalEnvelope(Geometry geom)
geom
- the geometrypublic double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public double getMinA()
public double getMaxA()
public double getMinB()
public double getMaxB()
public boolean isNull()
public void setToNull()
public void expandToInclude(Geometry g)
public OctagonalEnvelope expandToInclude(CoordinateSequence seq)
public OctagonalEnvelope expandToInclude(OctagonalEnvelope oct)
public OctagonalEnvelope expandToInclude(Coordinate p)
public OctagonalEnvelope expandToInclude(Envelope env)
public OctagonalEnvelope expandToInclude(double x, double y)
public void expandBy(double distance)
public boolean intersects(OctagonalEnvelope other)
public boolean intersects(Coordinate p)
public boolean contains(OctagonalEnvelope other)
public Geometry toGeometry(GeometryFactory geomFactory)
Copyright © 2024. All rights reserved.