forked from judero01col/GMap.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrawTile.cs
More file actions
37 lines (29 loc) · 783 Bytes
/
Copy pathDrawTile.cs
File metadata and controls
37 lines (29 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
namespace GMap.NET.Internals
{
/// <summary>
/// struct for drawing tile
/// </summary>
internal struct DrawTile : IEquatable<DrawTile>, IComparable<DrawTile>
{
public GPoint PosXY;
public GPoint PosPixel;
public double DistanceSqr;
public override string ToString()
{
return PosXY + ", px: " + PosPixel;
}
#region IEquatable<DrawTile> Members
public bool Equals(DrawTile other)
{
return PosXY == other.PosXY;
}
#endregion
#region IComparable<DrawTile> Members
public int CompareTo(DrawTile other)
{
return other.DistanceSqr.CompareTo(DistanceSqr);
}
#endregion
}
}