Skip to content

Commit

Permalink
Improving docs
Browse files Browse the repository at this point in the history
  • Loading branch information
phayes committed Mar 6, 2023
1 parent c6cb8ab commit 5770cc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions geo/src/algorithm/geodesic_destination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use crate::Point;
use geographiclib_rs::{Geodesic, DirectGeodesic};
use geo_types::CoordNum;

/// Returns a new Point using the distance to the existing Point and a bearing for the direction on a geodesic
/// Returns a new Point using the distance to the existing Point and a bearing for the direction on a geodesic.
///
/// This uses the geodesic methods given by [Karney (2013)].
///
/// [Karney (2013)]: https://arxiv.org/pdf/1109.4448.pdf
pub trait GeodesicDestination<T: CoordNum> {
/// Returns a new Point using distance to the existing Point and a bearing for the direction
/// Returns a new Point using distance to the existing Point and a bearing for the direction.
///
/// # Units
///
Expand Down
7 changes: 5 additions & 2 deletions geo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
//! ## Query
//!
//! - **[`Bearing`](Bearing)**: Calculate the bearing between points
//! - **[`GeodesicBearing`](GeodesicBearing)**: Calculate the bearing between points on a [geodesic](https://en.wikipedia.org/wiki/Geodesics_on_an_ellipsoid)
//! - **[`ClosestPoint`](ClosestPoint)**: Find the point on a geometry
//! closest to a given point
//! - **[`IsConvex`](IsConvex)**: Calculate the convexity of a
Expand Down Expand Up @@ -142,8 +143,10 @@
//! ## Miscellaneous
//!
//! - **[`Centroid`](Centroid)**: Calculate the centroid of a geometry
//! - **[`HaversineDestination`](HaversineDestination)**:
//! - **[`HaversineIntermediate`](HaversineIntermediate)**:
//! - **[`GeodesicDestination`](GeodesicDestination)**: Given a start point, bearing, and distance, calculate the destination point on a [geodesic](https://en.wikipedia.org/wiki/Geodesics_on_an_ellipsoid)
//! - **[`GeodesicIntermediate`](GeodesicIntermediate)**: Calculate intermediate points on a [geodesic](https://en.wikipedia.org/wiki/Geodesics_on_an_ellipsoid)
//! - **[`HaversineDestination`](HaversineDestination)**: Given a start point, bearing, and distance, calculate the destination point on a sphere
//! - **[`HaversineIntermediate`](HaversineIntermediate)**: Calculate intermediate points on a sphere
//! - **[`proj`](proj)**: Project geometries with the `proj` crate (requires the `use-proj` feature)
//! - **[`ChaikinSmoothing`](ChaikinSmoothing)**: Smoothen `LineString`, `Polygon`, `MultiLineString` and `MultiPolygon` using Chaikins algorithm.
//! - **[`Densify`](Densify)**: Densify linear geometry components by interpolating points
Expand Down

0 comments on commit 5770cc7

Please sign in to comment.