Processing math: 100%

Monday, September 16, 2019

How to calculate areas of triangles and polygons

3 vertices and cross product

If 3 vertices' coordinates are given, the size of the cross product of the two vectors is same to two times of the triangle area.
삼각형의 3꼭지점 좌표를 알고 있다면, 인접한 두 벡터의 외적의 크기는 삼각형 면적의 두배와 같다.

A=0.5|(p2p1)×(p3p1)|

If N is the result of the cross product of the two vectors, p1p2 and p1p3, the size of N is same to the parallelogram including p1p2 and p1p3.
만약 N이 두 벡터 p1p2 and p1p3의 외적이면, N의 크기는 두 벡터 두 벡터 p1p2 and p1p3을 포함하는 평행사변형의 면적과 같다.

Using the cross product and vertices' coordinates, we can get the area of a polygon by spliting a polygon into sub-triangles.
벡터외적과 꼭지점들의 좌표를 이용하면, 다각형을 내부의 작은 삼각형으로 분할하여 그 면적을 계산할 수 있다.

A=n1i=20.5|(pip1)×(pi+1p1)|

We should know the limitation that any vector defiend by two vertices cannot intersect with any side of the polygon.
두 개의 꼭지점으로 정의되는 어떤 벡터도 다각형의 어떤 변과도 만나면 안된다는 한계점을 알고 있어야 한다.

This page will be update for how to calculate a complex polygon's area.

No comments: