nvector._core.on_great_circle_path¶
-
nvector._core.
on_great_circle_path
(path, n_EB_E, radius=6371009.0, rtol=1e-06, atol=1e-08)[source][source]¶ True if position B is on great circle and between endpoints of 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 measure the cross track distance 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 and between endpoints of path A.