# Compute the cross-track distance from a great circle arc

Source:`R/cross_track_distance.R`

`cross_track_distance.Rd`

Compute the cross-track distance of a body, `b` (for example a ground level projection position of an aircraft), from a great circle arc determined by two geographical coordinates, `a1` and `a2` (for example an airport's runway thresholds).

## Arguments

- b
the geographical coordinates (WGS84) of a body: a vector of longitude, latitude (in decimal degrees) and eventually altitude (in meters)

- a1
the geographical coordinates (WGS84) of one end of a great circle arc: a vector of longitude, latitude (in decimal degrees) and eventually altitude (in meters)

- a2
the geographical coordinates (WGS84) of the other end of a great circle arc: a vector of longitude, latitude (in decimal degrees) and eventually altitude (in meters)

## See also

Other utilities:
`along_track_distance()`

,
`altitude_azimuth_distance()`

,
`cross_track_intersection()`