How to find the area of a triangle given 3 vertices?

5 ビュー (過去 30 日間)
Kinitz Hasim
Kinitz Hasim 2017 年 10 月 25 日
コメント済み: Zachary 2022 年 6 月 17 日
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.

採用された回答

Jos (10584)
Jos (10584) 2017 年 10 月 25 日
  1. Pick one vertex, let say V1, as "origin"
  2. Get the two vectors of from this point to the other two points (V2-V1) and (V3-V1)
  3. Calculate the cross product between these two vectors
  4. The magnitude of this cross product is half the size of your triangle
More info? Google is your friend ...
  2 件のコメント
Morgan Rory Didelin
Morgan Rory Didelin 2020 年 9 月 9 日
But then google sends us here, like a never ending google loop.
Zachary
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 ExchangeElementary Polygons についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by