C# Class PreStorm.GeometryFunctions

Provides utility functions for geometry objects.
显示文件 Open project: jshirota/PreStorm

Public Methods

Method Description
Area ( this polygon ) : double

Calculates the area of the polygon.

Buffer ( this extent, double distance ) : Envelope

Buffers the extent by the specified distance.

Centre ( this extent ) : Point

Returns the centre point of the extent.

Contains ( this polygon, Multipoint multipoint ) : bool

Determines if the polygon completely contains the multipoint.

Contains ( this polygon, Point point ) : bool

Determines if the polygon contains the point.

Contains ( this polygon1, Polygon polygon2 ) : bool

Determines if the polygon completely contains the other polygon.

Contains ( this polygon, Polyline polyline ) : bool

Determines if the polygon completely contains the polyline.

Contains ( this feature1, Feature feature2 ) : bool

Determines if the polygon completely contains the multipoint.

Contains ( this feature1, Feature feature2 ) : bool

Determines if the polygon contains the point.

Contains ( this feature1, Feature feature2 ) : bool

Determines if the polygon completely contains the other polygon.

Contains ( this feature1, Feature feature2 ) : bool

Determines if the polygon completely contains the polyline.

Distance ( this point, Multipoint multipoint ) : double

Calculates the shortest distance to the multipoint.

Distance ( this point1, Point point2 ) : double

Calculates the distance to the other point.

Distance ( this point, Polygon polygon ) : double

Calculates the shortest distance to the polygon.

Distance ( this point, Polyline polyline ) : double

Calculates the shortest distance to the polyline.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Distance ( this feature1, Feature feature2 ) : double

Calculates the distance between two features.

Extent ( this point ) : Envelope

Returns the extent of this point.

Intersect ( this polyline1, Polyline polyline2 ) : Point[]

Returns intersection points between the two polylines.

Intersect ( this feature1, Feature feature2 ) : Point[]

Returns intersection points between the two polylines.

Intersects ( this polyline, Polygon polygon ) : bool

Determines if the polyline intersects the polygon.

Intersects ( this polyline1, Polyline polyline2 ) : bool

Determines if the polyline intersects the other polyline.

Intersects ( this feature1, Feature feature2 ) : bool

Determines if the polyline intersects the other polyline.

Intersects ( this feature1, Feature feature2 ) : bool

Determines if the polygon intersects the polyline.

Intersects ( this feature1, Feature feature2 ) : bool

Determines if the polyline intersects the polygon.

Intersects ( this feature1, Feature feature2 ) : bool

Determines if the polyline intersects the other polyline.

Length ( this polyline ) : double

Calculates the length of the polyline.

Perimeter ( this polygon ) : double

Calculates the perimeter of the polygon.

Within ( this point, Polygon polygon ) : bool

Determines if the point is inside the polygon.

Within ( this feature1, Feature feature2 ) : bool

Determines if the multipoint is inside the polygon.

Within ( this feature1, Feature feature2 ) : bool

Determines if the point is inside the polygon.

Within ( this feature1, Feature feature2 ) : bool

Determines if the polygon is inside the other polygon.

Within ( this feature1, Feature feature2 ) : bool

Determines if the polyline is inside the polygon.

WithinDistance ( this point, Multipoint multipoint, double distance ) : bool

Determines if the point is within the specified distance from the multipoint.

WithinDistance ( this point1, Point point2, double distance ) : bool

Determines if the point is within the specified distance from the other point.

WithinDistance ( this point, Polygon polygon, double distance ) : bool

Determines if the point is within the specified distance from the polygon.

WithinDistance ( this point, Polyline polyline, double distance ) : bool

Determines if the point is within the specified distance from the polyline.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

WithinDistance ( this feature1, Feature feature2, double distance ) : bool

Determines if the feature is within the specified distance from the other feature.

Private Methods

Method Description
Area ( double p1, double p2 ) : double
AssertNotNull ( ) : void
Contains ( double ring, Point point ) : bool
Contains ( this polygon, double points ) : bool
Distance ( Vector p1, Vector p2, Vector p ) : double
Distance ( this point, double paths ) : double
GroupRings ( this polygon ) : List>
Intersect ( double l1, double l2 ) : Point
Intersect ( double path1, double path2 ) : Point[]
Intersects ( this extent1, Envelope extent2 ) : bool
IsInnerRing ( this ring ) : bool
Length ( this p1, double p2 ) : double
Null ( ) : bool

Method Details

Area() public static method

Calculates the area of the polygon.
public static Area ( this polygon ) : double
polygon this
return double

Buffer() public static method

Buffers the extent by the specified distance.
public static Buffer ( this extent, double distance ) : Envelope
extent this
distance double
return Envelope

Centre() public static method

Returns the centre point of the extent.
public static Centre ( this extent ) : Point
extent this
return Point

Contains() public static method

Determines if the polygon completely contains the multipoint.
public static Contains ( this polygon, Multipoint multipoint ) : bool
polygon this
multipoint Multipoint
return bool

Contains() public static method

Determines if the polygon contains the point.
public static Contains ( this polygon, Point point ) : bool
polygon this
point Point
return bool

Contains() public static method

Determines if the polygon completely contains the other polygon.
public static Contains ( this polygon1, Polygon polygon2 ) : bool
polygon1 this
polygon2 Polygon
return bool

Contains() public static method

Determines if the polygon completely contains the polyline.
public static Contains ( this polygon, Polyline polyline ) : bool
polygon this
polyline Polyline
return bool

Contains() public static method

Determines if the polygon completely contains the multipoint.
public static Contains ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Contains() public static method

Determines if the polygon contains the point.
public static Contains ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Contains() public static method

Determines if the polygon completely contains the other polygon.
public static Contains ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Contains() public static method

Determines if the polygon completely contains the polyline.
public static Contains ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Distance() public static method

Calculates the shortest distance to the multipoint.
public static Distance ( this point, Multipoint multipoint ) : double
point this
multipoint Multipoint
return double

Distance() public static method

Calculates the distance to the other point.
public static Distance ( this point1, Point point2 ) : double
point1 this
point2 Point
return double

Distance() public static method

Calculates the shortest distance to the polygon.
public static Distance ( this point, Polygon polygon ) : double
point this
polygon Polygon
return double

Distance() public static method

Calculates the shortest distance to the polyline.
public static Distance ( this point, Polyline polyline ) : double
point this
polyline Polyline
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Distance() public static method

Calculates the distance between two features.
public static Distance ( this feature1, Feature feature2 ) : double
feature1 this
feature2 Feature
return double

Extent() public static method

Returns the extent of this point.
public static Extent ( this point ) : Envelope
point this
return Envelope

Intersect() public static method

Returns intersection points between the two polylines.
public static Intersect ( this polyline1, Polyline polyline2 ) : Point[]
polyline1 this
polyline2 Polyline
return Point[]

Intersect() public static method

Returns intersection points between the two polylines.
public static Intersect ( this feature1, Feature feature2 ) : Point[]
feature1 this
feature2 Feature
return Point[]

Intersects() public static method

Determines if the polyline intersects the polygon.
public static Intersects ( this polyline, Polygon polygon ) : bool
polyline this
polygon Polygon
return bool

Intersects() public static method

Determines if the polyline intersects the other polyline.
public static Intersects ( this polyline1, Polyline polyline2 ) : bool
polyline1 this
polyline2 Polyline
return bool

Intersects() public static method

Determines if the polyline intersects the other polyline.
public static Intersects ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Intersects() public static method

Determines if the polygon intersects the polyline.
public static Intersects ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Intersects() public static method

Determines if the polyline intersects the polygon.
public static Intersects ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Intersects() public static method

Determines if the polyline intersects the other polyline.
public static Intersects ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Length() public static method

Calculates the length of the polyline.
public static Length ( this polyline ) : double
polyline this
return double

Perimeter() public static method

Calculates the perimeter of the polygon.
public static Perimeter ( this polygon ) : double
polygon this
return double

Within() public static method

Determines if the point is inside the polygon.
public static Within ( this point, Polygon polygon ) : bool
point this
polygon Polygon
return bool

Within() public static method

Determines if the multipoint is inside the polygon.
public static Within ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Within() public static method

Determines if the point is inside the polygon.
public static Within ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Within() public static method

Determines if the polygon is inside the other polygon.
public static Within ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

Within() public static method

Determines if the polyline is inside the polygon.
public static Within ( this feature1, Feature feature2 ) : bool
feature1 this
feature2 Feature
return bool

WithinDistance() public static method

Determines if the point is within the specified distance from the multipoint.
public static WithinDistance ( this point, Multipoint multipoint, double distance ) : bool
point this
multipoint Multipoint
distance double
return bool

WithinDistance() public static method

Determines if the point is within the specified distance from the other point.
public static WithinDistance ( this point1, Point point2, double distance ) : bool
point1 this
point2 Point
distance double
return bool

WithinDistance() public static method

Determines if the point is within the specified distance from the polygon.
public static WithinDistance ( this point, Polygon polygon, double distance ) : bool
point this
polygon Polygon
distance double
return bool

WithinDistance() public static method

Determines if the point is within the specified distance from the polyline.
public static WithinDistance ( this point, Polyline polyline, double distance ) : bool
point this
polyline Polyline
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool

WithinDistance() public static method

Determines if the feature is within the specified distance from the other feature.
public static WithinDistance ( this feature1, Feature feature2, double distance ) : bool
feature1 this
feature2 Feature
distance double
return bool