GPKGTileGrid

Objective-C

@interface GPKGTileGrid : NSObject

Swift

class GPKGTileGrid : NSObject

Tile grid with x and y ranges

  • Min x

    Declaration

    Objective-C

    @property (nonatomic) int minX;

    Swift

    var minX: Int32 { get set }
  • Max x

    Declaration

    Objective-C

    @property (nonatomic) int maxX;

    Swift

    var maxX: Int32 { get set }
  • Min y

    Declaration

    Objective-C

    @property (nonatomic) int minY;

    Swift

    var minY: Int32 { get set }
  • Max y

    Declaration

    Objective-C

    @property (nonatomic) int maxY;

    Swift

    var maxY: Int32 { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithMinX:(int)minX
                         andMinY:(int)minY
                         andMaxX:(int)maxX
                         andMaxY:(int)maxY;

    Swift

    init!(minX: Int32, andMinY minY: Int32, andMaxX maxX: Int32, andMaxY maxY: Int32)

    Parameters

    minX

    min x

    minY

    min y

    maxX

    max x

    maxY

    max y

    Return Value

    new tile grid

  • Get the count of tiles in the grid

    Declaration

    Objective-C

    - (int)count;

    Swift

    func count() -> Int32

    Return Value

    tile count

  • Get the grid width

    Declaration

    Objective-C

    - (int)width;

    Swift

    func width() -> Int32

    Return Value

    width

  • Get the grid height

    Declaration

    Objective-C

    - (int)height;

    Swift

    func height() -> Int32

    Return Value

    height

  • Determine if equal to the provided tile grid

    Declaration

    Objective-C

    - (BOOL)equals:(GPKGTileGrid *)tileGrid;

    Swift

    func equals(_ tileGrid: GPKGTileGrid!) -> Bool

    Parameters

    tileGrid

    tile grid

    Return Value

    true if equal, false if not