AForge.Math.Geometry.Line.FromPoints C# (CSharp) Method

FromPoints() public static method

Creates a Line that goes through the two specified points.
Thrown if the two points are the same.
public static FromPoints ( Point point1, Point point2 ) : Line
point1 Point One point on the line.
point2 Point Another point on the line.
return Line
		public static Line FromPoints( Point point1, Point point2 )
		{
			return new Line( point1, point2 );
		}

Usage Example

Example #1
0
        public static float GetAngleBetweenLines(Point a1, Point a2, Point b1, Point b2)
        {
            Line line = Line.FromPoints(a1, a2);

            return(line.GetAngleBetweenLines(Line.FromPoints(b1, b2)));
        }
All Usage Examples Of AForge.Math.Geometry.Line::FromPoints