Problem 2375. Obscured by Earth
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
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 9 Oct 2020
Hum, according to WGS-84, Earth is not an sphere.
Solution Comments
Show commentsProblem Recent Solvers17
Suggested Problems
-
1646 Solvers
-
Back to basics 25 - Valid variable names
322 Solvers
-
Getting the absolute index from a matrix
244 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
372 Solvers
-
Solving Quadratic Equations (Version 1)
482 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!