Class OctagonalEnvelope
- Namespace
- NetTopologySuite.Geometries
- Assembly
- NetTopologySuite.dll
A bounding container for a Geometry which is in the shape of a general octagon.
public class OctagonalEnvelope
- Inheritance
-
OctagonalEnvelope
- Inherited Members
Remarks
The OctagonalEnvelope of a geometric object is a geometry which is 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).
Constructors
OctagonalEnvelope()
Creates a new null bounding octagon
public OctagonalEnvelope()
OctagonalEnvelope(Coordinate)
Creates a new null bounding octagon bounding a Coordinate
public OctagonalEnvelope(Coordinate p)
Parameters
pCoordinateThe coordinate to bound
OctagonalEnvelope(Coordinate, Coordinate)
Creates a new null bounding octagon bounding a pair of Coordinates
public OctagonalEnvelope(Coordinate p0, Coordinate p1)
Parameters
p0CoordinateA coordinate to bound
p1CoordinateA coordinate to bound
OctagonalEnvelope(Envelope)
Creates a new null bounding octagon bounding an Envelope
public OctagonalEnvelope(Envelope env)
Parameters
envEnvelope
OctagonalEnvelope(Geometry)
Creates a new null bounding octagon bounding a Geometry
public OctagonalEnvelope(Geometry geom)
Parameters
geomGeometry
OctagonalEnvelope(OctagonalEnvelope)
Creates a new null bounding octagon bounding an OctagonalEnvelope (the copy constructor).
public OctagonalEnvelope(OctagonalEnvelope oct)
Parameters
Properties
IsNull
Gets a value indicating that this object is null
public bool IsNull { get; }
Property Value
MaxA
Gets a value indicating the maximal a value
public double MaxA { get; }
Property Value
MaxB
Gets a value indicating the maximal b value
public double MaxB { get; }
Property Value
MaxX
Gets a value indicating the maximal x-ordinate value
public double MaxX { get; }
Property Value
MaxY
Gets a value indicating the maximal y-ordinate value
public double MaxY { get; }
Property Value
MinA
Gets a value indicating the minimal a value
public double MinA { get; }
Property Value
MinB
Gets a value indicating the minimal b value
public double MinB { get; }
Property Value
MinX
Gets a value indicating the minimal x-ordinate value
public double MinX { get; }
Property Value
MinY
Gets a value indicating the minimal y-ordinate value
public double MinY { get; }
Property Value
Methods
Contains(OctagonalEnvelope)
Function to test if this octagonal envelope contains other octagonal envelope.
public bool Contains(OctagonalEnvelope other)
Parameters
otherOctagonalEnvelopeAn octagonal envelope
Returns
- bool
trueifthisoctagonal envelope containsotheroctagonal envelope.
ExpandBy(double)
public void ExpandBy(double distance)
Parameters
distancedouble
ExpandToInclude(Coordinate)
Function to expand this OctagonalEnvelope to include the provided p coordinate.
public OctagonalEnvelope ExpandToInclude(Coordinate p)
Parameters
pCoordinateThe coordinate
Returns
- OctagonalEnvelope
A reference to
thisoctagonal envelope, expanded byp
ExpandToInclude(CoordinateSequence)
Method to expand this OctagonalEnvelope to include the provided seq coordinate sequence.
public OctagonalEnvelope ExpandToInclude(CoordinateSequence seq)
Parameters
seqCoordinateSequenceThe coordinate sequence
Returns
- OctagonalEnvelope
A reference to
thisoctagonal envelope, expanded byseq
ExpandToInclude(Envelope)
Function to expand this OctagonalEnvelope to include the provided env envelope.
public OctagonalEnvelope ExpandToInclude(Envelope env)
Parameters
envEnvelopeThe envelope
Returns
- OctagonalEnvelope
A reference to
thisoctagonal envelope, expanded byenv
ExpandToInclude(Geometry)
Method to expand this OctagonalEnvelope to include the provided g geometry.
public void ExpandToInclude(Geometry g)
Parameters
gGeometryThe geometry
ExpandToInclude(OctagonalEnvelope)
Method to expand this OctagonalEnvelope to include the provided oct OctogonalEnvelope.
public OctagonalEnvelope ExpandToInclude(OctagonalEnvelope oct)
Parameters
octOctagonalEnvelopeThe OctogonalEnvelope
Returns
- OctagonalEnvelope
A reference to
thisoctagonal envelope, expanded byoct
ExpandToInclude(double, double)
Function to expand this OctagonalEnvelope to include the provided x- and y ordinates.
public OctagonalEnvelope ExpandToInclude(double x, double y)
Parameters
Returns
- OctagonalEnvelope
A reference to
thisoctagonal envelope, expanded byxandy
GetOctagonalEnvelope(Geometry)
Gets the octagonal envelope of a geometry
public static Geometry GetOctagonalEnvelope(Geometry geom)
Parameters
geomGeometryThe geometry
Returns
- Geometry
The octagonal envelope of the geometry
Intersects(Coordinate)
Function to test if this octagonal envelope contains p coordinate.
public bool Intersects(Coordinate p)
Parameters
pCoordinateA coordinate
Returns
- bool
trueifthisoctagonal envelope containspcoordinate.
Intersects(OctagonalEnvelope)
Function to test if this octagonal envelope intersects other octagonal envelope .
public bool Intersects(OctagonalEnvelope other)
Parameters
otherOctagonalEnvelopeAn octagonal envelope
Returns
- bool
trueifthisoctagonal envelope intersectsotheroctagonal envelope .
ToGeometry(GeometryFactory)
Function to convert this octagonal envelope into a geometry
public Geometry ToGeometry(GeometryFactory geomFactory)
Parameters
geomFactoryGeometryFactoryThe factory to create the geometry
Returns
- Geometry
A geometry