module Cisco::Meraki::Geo
Defined in:
cisco/meraki/geo.crConstant Summary
-
EarthRadiusApprox =
6371000.7900
-
radius in meters, approx as we're using a perfect sphere the same volume as the earth
-
Radians =
Math::PI / 180_f64
Class Method Summary
- .calculate_xy(top_left : Point, bottom_left : Point, bottom_right : Point, position, distance : Distance)
-
.geo_distance(start : Point, ending)
https://www.movable-type.co.uk/scripts/latlong.html returns the distance in meters
-
.triangle_height(a : Float64, base : Float64, c : Float64)
https://www.omnicalculator.com/math/triangle-height
Class Method Detail
def self.calculate_xy(top_left : Point, bottom_left : Point, bottom_right : Point, position, distance : Distance)
#
https://www.movable-type.co.uk/scripts/latlong.html returns the distance in meters
def self.triangle_height(a : Float64, base : Float64, c : Float64)
#
https://www.omnicalculator.com/math/triangle-height