Geotools.Net

CGAlgorithms.ComputeOrientation Method 

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.

[Visual Basic]
MustOverride Public Function ComputeOrientation( _
   ByVal p1 As Coordinate, _
   ByVal p2 As Coordinate, _
   ByVal q As Coordinate _
) As Integer
[C#]
public abstract int ComputeOrientation(
   Coordinate p1,
   Coordinate p2,
   Coordinate q
);

Parameters

p1
First coordinate in the directed line segment.
p2
Second coordinate in the directed line segment.
q
Coordinate to test for orientation.

Return Value

Returns 1 if q is counter-clockwise from p1 to p2 and returns -1 if q is clockwise from p1 to p2. Returns 0 if q is collinear with p1 to p2.

Remarks

Missing <remarks> documentation for M:Geotools.Algorithms.CGAlgorithms.ComputeOrientation(Geotools.Geometries.Coordinate,Geotools.Geometries.Coordinate,Geotools.Geometries.Coordinate)

See Also

CGAlgorithms Class | CGAlgorithms Members | Geotools.Algorithms Namespace