pub fn find_point(
origin: Point,
distance: f64,
bearing: f64,
unit: Unit,
) -> PointExpand description
Calculates the point at the given distance and bearing from the origin point.
ยงExamples
use haversine_rs::point::Point;
use haversine_rs::units::Unit;
use haversine_rs::find_point;
let origin = Point::new(40.7767644, -73.9761399);
let distance = 0.5971169354597881;
let bearing = 130.00282723561608;
let point = find_point(origin, distance, bearing, Unit::Miles);
println!("{:?}", point);
assert!(point.latitude == 40.771209);
assert!(point.longitude == -73.9673991);