Module: H3::Miscellaneous
Overview
Miscellaneous functions.
Instance Method Summary collapse
-
#degs_to_rads(degs) ⇒ Float
Convert a number expressed in degrees to its equivalent in radians.
-
#edge_length_km(resolution) ⇒ Float
Derive the length of a hexagon edge in kilometres at the given resolution.
-
#edge_length_m(resolution) ⇒ Float
Derive the length of a hexagon edge in metres at the given resolution.
-
#hex_area_km2(resolution) ⇒ Float
Average hexagon area in square kilometres at the given resolution.
-
#hex_area_m2(resolution) ⇒ Float
Average hexagon area in square metres at the given resolution.
-
#num_hexagons(resolution) ⇒ Integer
Number of unique H3 indexes at the given resolution.
-
#rads_to_degs(rads) ⇒ Float
Convert a number expressed in radians to its equivalent in degrees.
Methods included from Bindings::Base
Instance Method Details
#degs_to_rads(degs) ⇒ Float
Convert a number expressed in degrees to its equivalent in radians.
19 |
# File 'lib/h3/miscellaneous.rb', line 19 attach_function :degs_to_rads, :degsToRads, [ :double ], :double |
#edge_length_km(resolution) ⇒ Float
Derive the length of a hexagon edge in kilometres at the given resolution.
32 |
# File 'lib/h3/miscellaneous.rb', line 32 attach_function :edge_length_km, :edgeLengthKm, [ :int ], :double |
#edge_length_m(resolution) ⇒ Float
Derive the length of a hexagon edge in metres at the given resolution.
45 |
# File 'lib/h3/miscellaneous.rb', line 45 attach_function :edge_length_m, :edgeLengthM, [ :int ], :double |
#hex_area_km2(resolution) ⇒ Float
Average hexagon area in square kilometres at the given resolution.
58 |
# File 'lib/h3/miscellaneous.rb', line 58 attach_function :hex_area_km2, :hexAreaKm2, [ :int ], :double |
#hex_area_m2(resolution) ⇒ Float
Average hexagon area in square metres at the given resolution.
71 |
# File 'lib/h3/miscellaneous.rb', line 71 attach_function :hex_area_m2, :hexAreaM2, [ :int ], :double |
#num_hexagons(resolution) ⇒ Integer
Number of unique H3 indexes at the given resolution.
84 |
# File 'lib/h3/miscellaneous.rb', line 84 attach_function :num_hexagons, :numHexagons, [ :int ], :ulong_long |
#rads_to_degs(rads) ⇒ Float
Convert a number expressed in radians to its equivalent in degrees.
97 |
# File 'lib/h3/miscellaneous.rb', line 97 attach_function :rads_to_degs, :radsToDegs, [ :double ], :double |