Struct TileIndex
Represents a tile at a predefined zoom level.
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public struct TileIndex
Constructors
TileIndex(Int32, Int32)
Creates a new tile index.
Declaration
public TileIndex(int x, int y)
Parameters
|
System.Int32
x
|
|
System.Int32
y
|
Fields
X
Keeps X.
Declaration
public int X
Field Value
|
System.Int32
|
Y
Keeps Y.
Declaration
public int Y
Field Value
|
System.Int32
|
Methods
Equals(TileIndex)
Returns true if the given tile index represents the same coordinates as this one.
Declaration
public bool Equals(TileIndex other)
Parameters
|
TileIndex
other
|
Returns
|
System.Boolean
|
Equals(Object)
Returns true if the given tile index represents the same coordinates as this one.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
|
Returns
|
System.Boolean
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Serves as a hash function .
Declaration
public override int GetHashCode()
Returns
|
System.Int32
|
Overrides
System.ValueType.GetHashCode()
TileIndexToWorld(Double, Double, Int32)
Converts tile coordinates to lat/lon.
Declaration
public static Coordinate TileIndexToWorld(double tileX, double tileY, int zoom)
Parameters
|
System.Double
tileX
|
|
System.Double
tileY
|
|
System.Int32
zoom
|
Returns
|
Coordinate
|
WorldToTileIndex(Double, Double, Int32)
Converts lat/lon to tile coordinates.
Declaration
public static TileIndex WorldToTileIndex(double latitude, double longitude, int zoom)
Parameters
|
System.Double
latitude
|
|
System.Double
longitude
|
|
System.Int32
zoom
|
Returns
|
TileIndex
|
Operators
Equality(TileIndex, TileIndex)
Returns true if the given tile index represents the same coordinates as this one.
Declaration
public static bool operator ==(TileIndex t1, TileIndex t2)
Parameters
|
TileIndex
t1
|
|
TileIndex
t2
|
Returns
|
System.Boolean
|