How can I check a known point cooradinates (x,y) if it belongs to a to Triangle which is known vertices coordinates v1,v2,v3 ??
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MQH
el 18 de Nov. de 2018
Comentada: MQH
el 19 de Nov. de 2018
I have a coordinates of point x ,y and I have coordinates of vertices of each triangle v1 ,v2 ,v3 . How can I check if one of the point belongs to a triangle?
0 comentarios
Respuesta aceptada
Bruno Luong
el 18 de Nov. de 2018
Editada: Bruno Luong
el 18 de Nov. de 2018
vx = [v1(1) v2(1) v3(1)]
vy = [v1(2) v2(2) v3(2)]
inpolygon(x,y,vx,vy)
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!