Science Oxygenwww.ScienceOxygen.com
|
Area of Polygon in 2-dimensional Coordinate System
Motivation:
Let’s start with the following problem. We have two vectors and . What is the area enclosed by , , and ?
Let the angle between and be denoted as . From Cosine law, we have cos = =
(because = ( - ) ( - ) = - 2 )
So, OAB = ½ sin = ½ = ½
The result here is independent from the coordinate system we choose. Let’s just put it into a 2-dimensional coordinate system by using O as the origin and label A and B as A(a1,a2) and B(b1, b2) .
| |2 | |2 – ( )2 = (a12 + a22)( b12 + b22) – (a1b1+a2b2)2 = (a1b2 – a2b1)2
Thus, OAB = ½ | (a1b2-a2b1)|
But let’s take a close look at the diagram:
If the positions of A and B are as shown, then we have b1a2 > a1b2
So, OAB = ½ ( b1a2 – a1b2 )
We will use it as a basic tool to find the area of a polygon in 2-dimensional coordinate system. First, we write down the result above as a theorem.
Theorem Let A(a1,a2) and B(b1, b2) be two points in the 2-dimensional coordinate system. Then OAB = ½ | (a1b2-a2b1)|
Furthermore, we consider the scenario that is a little more complicated:
ABC = OAB + OBC - OAC = ½ ( | a1b2 – a2b1| + | b1c2 – b2c1| - | a1c2 –a2c1| )
So, we can use the theorem above to find the area of ABC . However, if we observe more, we can find some rule behind them. The following diagram is summarizing the rule associated with the area:
“blue” means positive; “red” means negative. And we only need to arrange the coordinates of all the points counterclockwise and multiply the result by ½ .
area = ½ | (a1b2 – a2b1 ) + ( b1c2 – b2c1 )+ ( c1a2 – c2a1 ) |
Similarly, the same approach can be applied to find the area of a polygon.
|