Sha256: 3a3505c11d7a6cda0f2352cd1a0102d527a9d295c3d337eb42beb00ec80c5309
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
/* * Copyright 2016-2018 Uber Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** @file utility.h * @brief Miscellaneous functions and constants. */ #ifndef UTILITY_H #define UTILITY_H #include <stdio.h> #include "coordijk.h" #include "h3api.h" #define BUFF_SIZE 256 /** Macro: Get the size of a fixed-size array */ #define ARRAY_SIZE(x) sizeof(x) / sizeof(x[0]) // prototypes void error(const char* msg); void h3Print(H3Index h); // prints as integer void h3Println(H3Index h); // prints as integer void coordIjkPrint(const CoordIJK* c); void geoToStringRads(const GeoCoord* p, char* str); void geoToStringDegs(const GeoCoord* p, char* str); void geoToStringDegsNoFmt(const GeoCoord* p, char* str); void geoPrint(const GeoCoord* p); void geoPrintln(const GeoCoord* p); void geoPrintNoFmt(const GeoCoord* p); void geoPrintlnNoFmt(const GeoCoord* p); void geoBoundaryPrint(const GeoBoundary* b); void geoBoundaryPrintln(const GeoBoundary* b); int readBoundary(FILE* f, GeoBoundary* b); void iterateAllIndexesAtRes(int res, void (*callback)(H3Index)); void iterateAllIndexesAtResPartial(int res, void (*callback)(H3Index), int maxBaseCell); #endif
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
h3-3.4.0 | ext/h3/src/src/apps/applib/include/utility.h |
h3-3.3.1 | ext/h3/src/src/apps/applib/include/utility.h |