1
/////////////////////////////////////////////////////////////////////////////////
3
// Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. //
4
// Portions Copyright (C) Microsoft Corporation. All Rights Reserved. //
5
// See license-pdn.txt for full licensing and attribution details. //
6
/////////////////////////////////////////////////////////////////////////////////
13
public struct Scanline
43
public override int GetHashCode()
47
return length.GetHashCode() + x.GetHashCode() + y.GetHashCode();
51
public override bool Equals(object obj)
55
Scanline rhs = (Scanline)obj;
56
return x == rhs.x && y == rhs.y && length == rhs.length;
64
public static bool operator== (Scanline lhs, Scanline rhs)
66
return lhs.x == rhs.x && lhs.y == rhs.y && lhs.length == rhs.length;
69
public static bool operator!= (Scanline lhs, Scanline rhs)
74
public override string ToString()
76
return "(" + x + "," + y + "):[" + length.ToString() + "]";
79
public Scanline(int x, int y, int length)