Skip to main content
Version: Next

TileCoordinate

Index

Constructors

constructor

  • new TileCoordinate(x: number, y: number, layer: number): TileCoordinate

Properties

layer

layer: number

x

x: number

y

y: number

Methods

publicencode

  • encode(): number
  • Returns number

publicstaticAddFileId

  • AddFileId(encodedCoordinate: number, fileId: number): number
  • Parameters

    • encodedCoordinate: number
    • fileId: number

    Returns number

publicstaticDecode

publicstaticEncode

  • Encode(x: number, y: number, layer: number): number
  • Parameters

    • x: number
    • y: number
    • layer: number

    Returns number

publicstaticEncodeCoordinate

  • EncodeCoordinate(coordinate: { layer: number; x: number; y: number }): number
  • Parameters

    • coordinate: { layer: number; x: number; y: number }

    Returns number

publicstaticGetFileId

  • GetFileId(encodedCoordinate: number): number
  • Parameters

    • encodedCoordinate: number

    Returns number

publicstaticGetLayer

  • GetLayer(encodedCoordinate: number): number
  • Parameters

    • encodedCoordinate: number

    Returns number

publicstaticRemoveFileId

  • RemoveFileId(encodedCoordinate: number): number
  • Parameters

    • encodedCoordinate: number

    Returns number