public static bool operator ==(LineSegment line1, LineSegment line2)
{
if (System.Object.ReferenceEquals(line1, line2))
{
return true;
}
if (((object)line1 == null) || ((object)line2 == null))
{
return false;
}
return ((line1.start == line2.start) && (line1.end == line2.end));
}