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

operator() public static method

Equality operator - checks if two lines have equal parameters.
public static operator ( ) : bool
return bool
		public static bool operator ==( Line line1, Line line2 )
		{
			if ( System.Object.ReferenceEquals( line1, line2 ) )
			{
				return true;
			}

			if ( ( (object) line1 == null ) || ( (object) line2 == null ) )
			{
				return false;
			}

			return ( ( line1.k == line2.k ) && ( line1.b == line2.b ) );
		}