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

Line() private method

private Line ( Point start, Point end ) : System
start Point
end Point
return System
		private Line( Point start, Point end )
		{
			if ( start == end )
			{
				throw new ArgumentException( "Start point of the line cannot be the same as its end point." );
			}

			k = ( end.Y - start.Y ) / ( end.X - start.X );
			b = float.IsInfinity( k ) ? start.X : start.Y - k * start.X;
		}

Same methods

Line::Line ( Point point, float theta ) : System
Line::Line ( float slope, float intercept ) : System
Line::Line ( float radius, float theta, bool unused ) : System