Module unit_sphere::vector

source ·
Expand description

The vector module contains functions for performing great circle calculations using vectors to represent points and great circle poles on a unit sphere.

Modules§

  • The intersection module contains functions for calculating great circle intersections using vectors.

Constants§

Functions§

  • The Great Circle distance of a point along the arc relative to a, (+ve) ahead of a, (-ve) behind a.
  • Determine whether two Vector3ds are orthogonal (perpendicular).
  • Calculate Great Circle along and across track distances.
  • Calculate the azimuth at a point on the Great Circle defined by pole.
  • Calculate the direction vector along a Great Circle from an initial position and an azimuth.
    See: Panou and Korakitis equations: 30, 31, & 32a https://arxiv.org/abs/1811.03513
  • Calculate the right hand pole vector of a Great Circle from an initial position and an azimuth.
    See: http://www.movable-type.co.uk/scripts/latlong-vectors.html#distance
  • The across track distance of a point relative to a Great Circle pole.
  • Calculate the relative longitude of point a from point b.
  • Calculate the direction vector of a Great Circle arc.
  • Calculate the shortest (Euclidean) distance between two Points.
    @post for unit vectors: result <= 2
  • Determine whether a Vector3d is a unit vector.
  • Determine whether point a is West of point b.
    It calculates and compares the perp product of the two points.
  • Calculate the latitude of a point.
  • Calculate the longitude of a point.
  • Calculate the mean position of a slice of points on a unit sphere.
  • Calculate the position of a point along a Great Circle arc.
  • Calculate the direction vector of a Great Circle rotated by angle.
  • Calculate the position of a point rotated by angle at radius.
  • The sine of the along track distance of a point along a Great Circle arc.
    It is the triple product of the pole, a and the point: (pole X a) . point = pole . (a X point)
  • Calculate the square of the Euclidean along track distance of a point from the start of an Arc. It is calculated using the closest point on the plane to the point.
  • The square of the Euclidean cross track distance of a point relative to a Great Circle pole.
  • Calculate the square of the Euclidean distance between two points. Note: points do NOT need to be valid Points.
    @post for unit vectors: result <= 4
  • Convert a latitude and longitude to a point on the unit sphere. @pre |lat| <= 90.0 degrees.