Point or multiple points is/are in a triangle??
Mostra commenti meno recenti
Check whether a point or multiple points is/are in a triangle with three corners
Points = [x, y];
Triangle = [x1, y1; x2, y2; x3, y3]
Return true or false for each point tested.
1 Commento
Star Strider
il 8 Dic 2020
Consider the triangle a polygon.
Search for functions that will give you the result you want with polygons.
Risposta accettata
Più risposte (1)
Ze-Zheng Wu
il 8 Dic 2020
Modificato: Ze-Zheng Wu
il 8 Dic 2020
isinterior(polyshape(Triangle), Points);
Categorie
Scopri di più su Triangulations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!