@@ -15,63 +15,54 @@ def self.safe_call(out_type, method, *in_args)
1515 out . send ( "read_#{ out_type } " . to_sym )
1616 end
1717
18+ # Hierarchy functions
1819 attach_function :cellToParent , [ :h3_index , Resolution , H3Index ] , :h3_error_code
1920 attach_function :compactCells , [ H3IndexesIn , H3IndexesOut , :int64 ] , :h3_error_code
20- # attach_function :destroy_linked_polygon, :destroyLinkedPolygon, [LinkedGeoPolygon], :void
21- attach_function :edge_length_km , :getHexagonEdgeLengthAvgKm , [ Resolution , :pointer ] , :h3_error_code
21+ attach_function :h3_to_children , :cellToChildren , [ :h3_index , Resolution , H3IndexesOut ] , :h3_error_code
22+ attach_function :max_children , :cellToChildrenSize , [ :h3_index , Resolution , :pointer ] , :h3_error_code
23+ attach_function :max_uncompact_size , :uncompactCellsSize , [ H3IndexesIn , :int64 , Resolution , :pointer ] , :h3_error_code
24+ attach_function :uncompactCells , [ H3IndexesIn , :size_t , H3IndexesOut , :size_t , Resolution ] , :h3_error_code
25+
26+ # Indexing functions
2227 attach_function :from_string , :stringToH3 , %i[ string pointer ] , :h3_error_code
2328 attach_function :geo_to_h3 , :latLngToCell , [ LatLng , Resolution , :pointer ] , :h3_error_code
24- # attach_function :get_pentagon_indexes, :getPentagonIndexes, [:int, H3IndexesOut], :void
25- attach_function :hexagon_count , :getNumCells , [ Resolution , :pointer ] , :h3_error_code
26- attach_function :h3_faces , :getIcosahedronFaces , %i[ h3_index buffer_out ] , :h3_error_code
27- # attach_function :h3_indexes_from_unidirectional_edge,
28- # :getH3IndexesFromUnidirectionalEdge,
29- # [:h3_index, H3IndexesOut], :void
30- # attach_function :h3_line, :h3Line, [:h3_index, :h3_index, H3IndexesOut], :int
31- # attach_function :h3_unidirectional_edges_from_hexagon,
32- # :getH3UnidirectionalEdgesFromHexagon,
33- # [:h3_index, H3IndexesOut], :void
34- # attach_function :h3_set_to_linked_geo,
35- # :h3SetToLinkedGeo,
36- # [H3IndexesIn, :size_t, LinkedGeoPolygon],
37- # :void
38- attach_function :h3_to_children , :cellToChildren , [ :h3_index , Resolution , H3IndexesOut ] , :h3_error_code
3929 attach_function :h3_to_geo , :cellToLatLng , [ :h3_index , LatLng ] , :h3_error_code
4030 attach_function :h3_to_string , :h3ToString , %i[ h3_index buffer_out size_t ] , :h3_error_code
41- attach_function :h3_to_geo_boundary ,
42- :cellToBoundary ,
43- [ :h3_index , CellBoundary ] ,
44- :h3_error_code
45- # attach_function :h3_unidirectional_edge_boundary,
46- # :getH3UnidirectionalEdgeBoundary,
47- # [:h3_index, CellBoundary], :void
48- # attach_function :hex_range, :hexRange, [:h3_index, :k_distance, H3IndexesOut], :bool
49- # attach_function :hex_range_distances,
50- # :hexRangeDistances,
51- # [:h3_index, :k_distance, H3IndexesOut, :buffer_out], :bool
52- # attach_function :hex_ranges,
53- # :hexRanges,
54- # [H3IndexesIn, :size_t, :k_distance, H3IndexesOut],
55- # :bool
56- # attach_function :hex_ring, :hexRing, [:h3_index, :k_distance, H3IndexesOut], :bool
31+ attach_function :h3_to_geo_boundary , :cellToBoundary , [ :h3_index , CellBoundary ] , :h3_error_code
32+
33+ # Traversal functions
5734 attach_function :k_ring , :gridDisk , [ :h3_index , :k_distance , H3IndexesOut ] , :h3_error_code
58- # attach_function :k_ring_distances,
59- # :kRingDistances,
60- # [:h3_index, :k_distance, H3IndexesOut, :buffer_out],
61- # :bool
62- attach_function :max_children , :cellToChildrenSize , [ :h3_index , Resolution , :pointer ] , :h3_error_code
35+ attach_function :k_ring_distances , :gridDiskDistances , [ :h3_index , :k_distance , H3IndexesOut , :pointer ] , :h3_error_code
36+ attach_function :hex_range , :gridDiskUnsafe , [ :h3_index , :k_distance , H3IndexesOut ] , :h3_error_code
37+ attach_function :hex_range_distances , :gridDiskDistancesUnsafe , [ :h3_index , :k_distance , H3IndexesOut , :pointer ] , :h3_error_code
38+ attach_function :hex_ranges , :gridDisksUnsafe , [ H3IndexesIn , :size_t , :k_distance , H3IndexesOut ] , :h3_error_code
39+ attach_function :hex_ring , :gridRingUnsafe , [ :h3_index , :k_distance , H3IndexesOut ] , :h3_error_code
40+ attach_function :h3_line , :gridPathCells , [ :h3_index , :h3_index , H3IndexesOut ] , :h3_error_code
41+
42+ # Directed edge functions (formerly unidirectional_edge)
43+ attach_function :h3_indexes_from_unidirectional_edge , :directedEdgeToCells , [ :h3_index , H3IndexesOut ] , :h3_error_code
44+ attach_function :h3_unidirectional_edges_from_hexagon , :originToDirectedEdges , [ :h3_index , H3IndexesOut ] , :h3_error_code
45+ attach_function :h3_unidirectional_edge_boundary , :directedEdgeToBoundary , [ :h3_index , CellBoundary ] , :h3_error_code
46+
47+ # Miscellaneous functions
48+ attach_function :hexagon_count , :getNumCells , [ Resolution , :pointer ] , :h3_error_code
49+ attach_function :edge_length_km , :getHexagonEdgeLengthAvgKm , [ Resolution , :pointer ] , :h3_error_code
50+ attach_function :edge_length_m , :getHexagonEdgeLengthAvgM , [ Resolution , :pointer ] , :h3_error_code
51+ attach_function :h3_faces , :getIcosahedronFaces , %i[ h3_index buffer_out ] , :h3_error_code
6352 attach_function :max_face_count , :maxFaceCount , %i[ h3_index pointer ] , :h3_error_code
64- # attach_function :max_polyfill_size,
65- # :maxPolyfillSize,
66- # [GeoPolygon, Resolution],
67- # :int
68- attach_function :max_uncompact_size , :uncompactCellsSize , [ H3IndexesIn , :int64 , Resolution , :pointer ] , :h3_error_code
69- # attach_function :point_distance_rads, :pointDistRads, [GeoCoord, GeoCoord], :double
70- # attach_function :point_distance_km, :pointDistKm, [GeoCoord, GeoCoord], :double
71- # attach_function :point_distance_m, :pointDistM, [GeoCoord, GeoCoord], :double
72- # attach_function :polyfill, [GeoPolygon, Resolution, H3IndexesOut], :void
53+ attach_function :get_pentagon_indexes , :getPentagonCells , [ :int , H3IndexesOut ] , :h3_error_code
7354 attach_function :res_0_indexes , :getRes0Cells , [ H3IndexesOut ] , :h3_error_code
74- attach_function :uncompactCells , [ H3IndexesIn , :size_t , H3IndexesOut , :size_t , Resolution ] , :h3_error_code
55+
56+ # Distance functions
57+ attach_function :point_distance_rads , :greatCircleDistanceRads , [ LatLng , LatLng ] , :double
58+ attach_function :point_distance_km , :greatCircleDistanceKm , [ LatLng , LatLng ] , :double
59+ attach_function :point_distance_m , :greatCircleDistanceM , [ LatLng , LatLng ] , :double
60+
61+ # Region functions
62+ attach_function :destroy_linked_polygon , :destroyLinkedMultiPolygon , [ LinkedGeoPolygon ] , :void
63+ attach_function :h3_set_to_linked_geo , :cellsToLinkedMultiPolygon , [ H3IndexesIn , :size_t , LinkedGeoPolygon ] , :h3_error_code
64+ attach_function :max_polyfill_size , :maxPolygonToCellsSize , [ GeoPolygon , Resolution , :pointer ] , :h3_error_code
65+ attach_function :polyfill , :polygonToCells , [ GeoPolygon , Resolution , H3IndexesOut ] , :h3_error_code
7566 end
7667 end
7768end
0 commit comments