nvector._core.on_great_circle

on_great_circle(path, n_EB_E, radius=6371009.0, rtol=1e-06, atol=1e-08)[source][source]

True if position B is on great circle through path A.

Parameters:
path: tuple of 2 n-vectors

2 n-vectors of positions defining path A, decomposed in E.

n_EB_E: 3 x m array

n-vector(s) of position B to check to.

radius: real scalar

radius of sphere. (default 6371009.0)

rtol, atol: real scalars

defining relative and absolute tolerance

Returns:
on : bool array of length max(n, m)

True if position B is on great circle through path A.