length

spherical_geometry.great_circle_arc.length(A, B)[source]

Returns the angular distance between two points (in vector space) on the unit sphere.

Parameters:
A, B(x, y, z) triples or Nx3 arrays of triples

The endpoints of the great circle arc, in vector space.

Returns:
lengthscalar or array of scalars

The angular length of the great circle arc in radians.

Notes

The length is computed using the following:

\[\Delta = \arccos(A \cdot B)\]