How to calculate the Line of sight (LOS) between two points in a Eucleidean appraoch?

25 vues (au cours des 30 derniers jours)
Ramesh Bala
Ramesh Bala le 29 Juin 2018
Commenté : Ramesh Bala le 5 Juil 2018
-Line of sight? -Sensor placements -10*10 grid _Eucleidean method
  5 commentaires
Kaitlyn Keil
Kaitlyn Keil le 2 Juil 2018
Line of sight doesn't matter unless you have some sort of obstacle or direction to something else. Are there objects on the grid besides the 2 points?
Ramesh Bala
Ramesh Bala le 2 Juil 2018
Yeah some times a hole ,or some mass in between.

Connectez-vous pour commenter.

Réponses (1)

Mridul G
Mridul G le 3 Juil 2018
Assuming you know the coordinates of all the points and obstacles (and holes?), you can follow the below steps.
Points P1(x1,y1) and P2(x2,y2). Let obstacle be O(x3,y3).
Check the distance between P1 and P2. Compare it with that of P1->O + O->P2. if both are the same, them O lies between P1 and P2 and is in LoS.
Euclidean distance between two points -> sqrt((x2-x1)^2+(y2-y1)^2))

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by