TileCoord

class TileCoord(var x: Int, val y: Int, val z: Int, var offset: Int = 0)

TileCoord.kt

Integer Coordinates for a Tile

Author

Jason Suto (11/30/23)

Parameters

x

: Int

y

: Int

z

: Int

Constructors

Link copied to clipboard
constructor(x: Int, y: Int, z: Int, offset: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val mapBounds: MapBounds<LatitudeLongitude>?
Link copied to clipboard
var offset: Int
Link copied to clipboard
var x: Int
Link copied to clipboard
val y: Int
Link copied to clipboard
val z: Int

Functions

Link copied to clipboard
fun equals(coord: TileCoord): Boolean
Link copied to clipboard
fun getAncestor(offset: Int = 1): TileCoord
Link copied to clipboard

Returns the normalized position for the center of the tile coordinate.

Link copied to clipboard
fun getDescendants(offset: Int = 1): HashMap<Int, TileCoord>
Link copied to clipboard
fun getNeighbor(xOffset: Int, yOffset: Int): TileCoord
Link copied to clipboard
Link copied to clipboard

Returns the normalized position for the top-left corner of the tile coordinate.

Link copied to clipboard
Link copied to clipboard
fun hash(): String

Used as a key in TileCache

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the normalized coordinate.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun wrap(): Float