You can determine the angle of two vectors simply by taking the scalar product (point product). A useful property is that if the vectors are orthogonal, their scalar product is zero; if their angle is obtuse, the product is negative, otherwise positive. So the steps are:
- V0 V1 ( ), 90 (
(x y) (-y x)) - V1 V2 ( )
- (
(x1 * x2) + (y1 * y2)) - , ,
- ...
- , ,
- (.. Vn V0 V0 V1)
edit: , , :
1 n-1
A = --- SUM( x(i)*y(i+1) - x(i+1)*y(i) )
2 i=0
n - . x(n) y(n) x(0) y(0) ( ).
, , .
edit: , - x1*y2 - x2*y1. :
- V0 V1 ( , )
- dito V1 V2
((x1 * y2) - (x2 * y1))- ,
.