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
minXmin x
minYmin y
maxXmax x
maxYmax y
Return Value
new tile grid
-
Get the count of tiles in the grid
Declaration
Objective-C
- (int)count;Swift
func count() -> Int32Return Value
tile count
-
Get the grid width
Declaration
Objective-C
- (int)width;Swift
func width() -> Int32Return Value
width
-
Get the grid height
Declaration
Objective-C
- (int)height;Swift
func height() -> Int32Return Value
height
-
Determine if equal to the provided tile grid
Declaration
Objective-C
- (BOOL)equals:(GPKGTileGrid *)tileGrid;Swift
func equals(_ tileGrid: GPKGTileGrid!) -> BoolParameters
tileGridtile grid
Return Value
true if equal, false if not
View on GitHub
GPKGTileGrid Class Reference