Class PlanarPolygon3D
- Namespace
- NetTopologySuite.Operation.Distance3D
- Assembly
- NetTopologySuite.dll
Models a polygon lying in a plane in 3-dimensional Cartesian space. The polygon representation is supplied by a Polygon, containing coordinates with XYZ ordinates. 3D polygons are assumed to lie in a single plane. The plane best fitting the polygon coordinates is computed and is represented by a Plane3D.
public class PlanarPolygon3D
- Inheritance
-
PlanarPolygon3D
- Inherited Members
Constructors
PlanarPolygon3D(Polygon)
Creates an instance of this class using the provided Polygon.
public PlanarPolygon3D(Polygon poly)
Parameters
polyPolygonThe polygon
Properties
Plane
Gets a value indicating the plane
public Plane3D Plane { get; }
Property Value
Polygon
Gets a value indicating the polygon
public Polygon Polygon { get; }
Property Value
Methods
Intersects(Coordinate)
Checks if intPt intersects with this PlanarPolygon3D.
public bool Intersects(Coordinate intPt)
Parameters
intPtCoordinateThe point to check
Returns
- bool
trueifintPtintersects thisPlanarPolygon3d.
Intersects(Coordinate, LineString)
Checks if the point pt intersects with ring when projected to this instance's facing plane
public bool Intersects(Coordinate pt, LineString ring)
Parameters
ptCoordinateA point
ringLineStringA ring
Returns
- bool
trueif point and linestring intersect