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
p
CoordinateThe coordinate to bound
OctagonalEnvelope(Coordinate, Coordinate)
Creates a new null bounding octagon bounding a pair of Coordinates
public OctagonalEnvelope(Coordinate p0, Coordinate p1)
Parameters
p0
CoordinateA coordinate to bound
p1
CoordinateA coordinate to bound
OctagonalEnvelope(Envelope)
Creates a new null bounding octagon bounding an Envelope
public OctagonalEnvelope(Envelope env)
Parameters
env
Envelope
OctagonalEnvelope(Geometry)
Creates a new null bounding octagon bounding a Geometry
public OctagonalEnvelope(Geometry geom)
Parameters
geom
Geometry
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
other
OctagonalEnvelopeAn octagonal envelope
Returns
- bool
true
ifthis
octagonal envelope containsother
octagonal envelope.
ExpandBy(double)
public void ExpandBy(double distance)
Parameters
distance
double
ExpandToInclude(Coordinate)
Function to expand this OctagonalEnvelope to include the provided p
coordinate.
public OctagonalEnvelope ExpandToInclude(Coordinate p)
Parameters
p
CoordinateThe coordinate
Returns
- OctagonalEnvelope
A reference to
this
octagonal envelope, expanded byp
ExpandToInclude(CoordinateSequence)
Method to expand this OctagonalEnvelope to include the provided seq
coordinate sequence.
public OctagonalEnvelope ExpandToInclude(CoordinateSequence seq)
Parameters
seq
CoordinateSequenceThe coordinate sequence
Returns
- OctagonalEnvelope
A reference to
this
octagonal envelope, expanded byseq
ExpandToInclude(Envelope)
Function to expand this OctagonalEnvelope to include the provided env
envelope.
public OctagonalEnvelope ExpandToInclude(Envelope env)
Parameters
env
EnvelopeThe envelope
Returns
- OctagonalEnvelope
A reference to
this
octagonal envelope, expanded byenv
ExpandToInclude(Geometry)
Method to expand this OctagonalEnvelope to include the provided g
geometry.
public void ExpandToInclude(Geometry g)
Parameters
g
GeometryThe geometry
ExpandToInclude(OctagonalEnvelope)
Method to expand this OctagonalEnvelope to include the provided oct
OctogonalEnvelope.
public OctagonalEnvelope ExpandToInclude(OctagonalEnvelope oct)
Parameters
oct
OctagonalEnvelopeThe OctogonalEnvelope
Returns
- OctagonalEnvelope
A reference to
this
octagonal 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
this
octagonal envelope, expanded byx
andy
GetOctagonalEnvelope(Geometry)
Gets the octagonal envelope of a geometry
public static Geometry GetOctagonalEnvelope(Geometry geom)
Parameters
geom
GeometryThe 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
p
CoordinateA coordinate
Returns
- bool
true
ifthis
octagonal envelope containsp
coordinate.
Intersects(OctagonalEnvelope)
Function to test if this
octagonal envelope intersects other
octagonal envelope .
public bool Intersects(OctagonalEnvelope other)
Parameters
other
OctagonalEnvelopeAn octagonal envelope
Returns
- bool
true
ifthis
octagonal envelope intersectsother
octagonal envelope .
ToGeometry(GeometryFactory)
Function to convert this
octagonal envelope into a geometry
public Geometry ToGeometry(GeometryFactory geomFactory)
Parameters
geomFactory
GeometryFactoryThe factory to create the geometry
Returns
- Geometry
A geometry