C# Class Accord.Math.Geometry.GeometryTools

Collection of some gemetry tool methods.
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
GetAngleBetweenLines ( System.Point a1, System.Point a2, System.Point b1, System.Point b2 ) : float

Calculate minimum angle between two lines measured in [0, 90] degrees range.

It is preferred to use Line.GetAngleBetweenLines if it is required to calculate angle multiple times for one of the lines.

GetAngleBetweenVectors ( System.Point startPoint, System.Point vector1end, System.Point vector2end ) : float

Calculate angle between to vectors measured in [0, 180] degrees range.

Method Details

GetAngleBetweenLines() public static method

Calculate minimum angle between two lines measured in [0, 90] degrees range.

It is preferred to use Line.GetAngleBetweenLines if it is required to calculate angle multiple times for one of the lines.

and are the same, /// -OR- and are the same.
public static GetAngleBetweenLines ( System.Point a1, System.Point a2, System.Point b1, System.Point b2 ) : float
a1 System.Point A point on the first line.
a2 System.Point Another point on the first line.
b1 System.Point A point on the second line.
b2 System.Point Another point on the second line.
return float

GetAngleBetweenVectors() public static method

Calculate angle between to vectors measured in [0, 180] degrees range.
public static GetAngleBetweenVectors ( System.Point startPoint, System.Point vector1end, System.Point vector2end ) : float
startPoint System.Point Starting point of both vectors.
vector1end System.Point Ending point of the first vector.
vector2end System.Point Ending point of the second vector.
return float