C# Class AForge.Math.Geometry.GeometryTools

Collection of some gemetry tool methods.
Afficher le fichier Open project: noxryan/Claro-Shader Class Usage Examples

Méthodes publiques

Méthode Description
GetAngleBetweenLines ( IntPoint a1, IntPoint a2, IntPoint b1, IntPoint b2 ) : double

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 ( IntPoint startPoint, IntPoint vector1end, IntPoint vector2end ) : double

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

Method Details

GetAngleBetweenLines() public static méthode

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 ( IntPoint a1, IntPoint a2, IntPoint b1, IntPoint b2 ) : double
a1 IntPoint A point on the first line.
a2 IntPoint Another point on the first line.
b1 IntPoint A point on the second line.
b2 IntPoint Another point on the second line.
Résultat double

GetAngleBetweenVectors() public static méthode

Calculate angle between to vectors measured in [0, 180] degrees range.
public static GetAngleBetweenVectors ( IntPoint startPoint, IntPoint vector1end, IntPoint vector2end ) : double
startPoint IntPoint Starting point of both vectors.
vector1end IntPoint Ending point of the first vector.
vector2end IntPoint Ending point of the second vector.
Résultat double