Google. Maps. Coord. TileCoord
An immutable representation of the x,y coordinates of a Google Maps tile.
Summary
For more information, see Map and Tile Coordinates.
Inheritance
Inherits from: IEquatable< TileCoord >
Constructors and Destructors |
|
---|---|
TileCoord(int x, int y, int zoom, bool normalize)
The
TileCoord constructor. |
Public attributes |
|
---|---|
X
|
readonly int
The x coordinate.
|
Y
|
readonly int
The y coordinate.
|
Zoom
|
readonly int
The zoom level.
|
Public functions |
|
---|---|
East(out TileCoord east, bool normalize)
|
bool
Produces the TileCoord to the immediate east of this tile coordinate. Returns true if the coordinate to the east falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
|
Equals(TileCoord other)
|
bool
Implements the IEquatable{T} interface.
|
Equals(object obj)
|
override bool
Overrides the
Equals() method. |
GetHashCode()
|
override int
Overrides the
GetHashCode() method. |
Neighbors(bool normalize)
|
Generates an array of coordinates for the tiles surrounding the supplied tile, accounting for boundaries, without wrapping.
|
North(out TileCoord north, bool normalize)
|
bool
Produces the TileCoord to the immediate north of this tile coordinate. Returns true if the coordinate to the north falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
|
Offset(out TileCoord offset, int xOffset, int yOffset, bool normalize)
|
bool
Produces the TileCoord offset from this tile coordinate by the specified X and Y. Returns true if this coordinate falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
|
South(out TileCoord south, bool normalize)
|
bool
Produces the TileCoord to the immediate south of this tile coordinate. Returns true if the coordinate to the south falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
|
ToString()
|
override string
Returns the formatted string representation of this
TileCoord . |
West(out TileCoord west, bool normalize)
|
bool
Produces the TileCoord to the immediate west of this tile coordinate. Returns true if the coordinate to the west falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
|
Public attributes
X
readonly int Google::Maps::Coord::TileCoord::X
The x coordinate.
This value is returned by the MaxValue()
method. The X coordinates wrap. For more information, see Map and Tile Coordinates.
Y
readonly int Google::Maps::Coord::TileCoord::Y
The y coordinate.
The Y coordinates are clamped. For more information, see Map and Tile Coordinates.
Zoom
readonly int Google::Maps::Coord::TileCoord::Zoom
The zoom level.
Public functions
East
bool Google::Maps::Coord::TileCoord::East( out TileCoord east, bool normalize )
Produces the TileCoord to the immediate east of this tile coordinate. Returns true if the coordinate to the east falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
Equals
bool Google::Maps::Coord::TileCoord::Equals( TileCoord other )
Implements the IEquatable{T} interface.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A boolean value that indicates whether the specified
TileCoord and this one are equal. |
Equals
override bool Google::Maps::Coord::TileCoord::Equals( object obj )
Overrides the Equals()
method.
Details | |||
---|---|---|---|
Parameters |
|
GetHashCode
override int Google::Maps::Coord::TileCoord::GetHashCode()
Overrides the GetHashCode()
method.
Neighbors
TileCoord[] Google::Maps::Coord::TileCoord::Neighbors( bool normalize )
Generates an array of coordinates for the tiles surrounding the supplied tile, accounting for boundaries, without wrapping.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The coordinates of neighboring tiles
|
North
bool Google::Maps::Coord::TileCoord::North( out TileCoord north, bool normalize )
Produces the TileCoord to the immediate north of this tile coordinate. Returns true if the coordinate to the north falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
Offset
bool Google::Maps::Coord::TileCoord::Offset( out TileCoord offset, int xOffset, int yOffset, bool normalize )
Produces the TileCoord offset from this tile coordinate by the specified X and Y. Returns true if this coordinate falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
South
bool Google::Maps::Coord::TileCoord::South( out TileCoord south, bool normalize )
Produces the TileCoord to the immediate south of this tile coordinate. Returns true if the coordinate to the south falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
TileCoord
Google::Maps::Coord::TileCoord::TileCoord( int x, int y, int zoom, bool normalize )
The TileCoord
constructor.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
ToString
override string Google::Maps::Coord::TileCoord::ToString()
Returns the formatted string representation of this TileCoord
.
West
bool Google::Maps::Coord::TileCoord::West( out TileCoord west, bool normalize )
Produces the TileCoord to the immediate west of this tile coordinate. Returns true if the coordinate to the west falls within the valid bounds of the tile coordinate space before any optional wrapping is applied. False if not.
Details | |||||
---|---|---|---|---|---|
Parameters |
|