Geotools.Net

CGAlgorithms Members

Public Static (Shared) Fields

CLOCKWISE Clockwise (-1).
COLLINEAR Colinear (0).
COUNTERCLOCKWISE Counterclockwise (1);

Public Static (Shared) Methods

DistanceLineLine Computes the distance from a line segment AB to a line segment CD Note: NON-ROBUST!
DistancePointLine Computes the distance from a point p to a line segment AB
Length Returns the length of a list of line segments.
SignedArea Returns the signed area for a ring. The area is positive if the ring is oriented CW.

Public Instance Methods

ComputeOrientation Computes the orientation of a point q to the directed line segment p1-p2. The orientation of a point relative to a directed line segment indicates which way you turn to get to q after traveling from p1 to p2.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
IsCCW Tests whether a ring is oriented counter-clockwise. The list of points is assumed to have the first and last points equal. If the point list does not form a valid ring the result is undefined.
IsOnLine Tests whether a point lies on a linestring.
IsPointInRing Tests whether a point lies inside a simple ring. The ring may be oriented in either direction. If the point lies on the ring boundary the result of this method is unspecified.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

CGAlgorithms ConstructorInitializes a new instance of the CGAlgorithms class.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

CGAlgorithms Class | Geotools.Algorithms Namespace