- Pick one vertex, let say V1, as "origin"
- Get the two vectors of from this point to the other two points (V2-V1) and (V3-V1)
- Calculate the cross product between these two vectors
- The magnitude of this cross product is half the size of your triangle
How to find the area of a triangle given 3 vertices?
조회 수: 5 (최근 30일)
이전 댓글 표시
By using MATLAB find the area of the triangle with vertices (3,1,0), (1,1,1) and (0, -2,-1).
I tried using polyarea, sounds good, doesn't work, never gonna happen.
댓글 수: 0
채택된 답변
Jos (10584)
2017년 10월 25일
More info? Google is your friend ...
댓글 수: 2
Zachary
2022년 6월 17일
The magnitude of the cross product is twice the area of the triangle (meaning you need to divide the cross product by 2), i think you just misspoke, but wanted to clarify in case anyone was genuinely lost, mathwise.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Elementary Polygons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!