Given two points in ECI reference frame, check wheather they are in line-of-sight, i.e, they are not obscured by Earth. Note that the Earth is assumed as a sphere with 6,378,137.0 m radius (equatorial radius according to WGS-84).

Inputs:

  • x1: [x y z] ECI coordinates of the first reference point
  • x2: [x y z] ECI coordinates of the second reference point

Outputs:

  • inLOS: true if the line-of-sight is not obscured by Earth

Solution Stats

87 Solutions

21 Solvers

Last Solution submitted on Jul 10, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers21

Suggested Problems

More from this Author1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!