Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate area of a object in cartesian plane

I wonder if someone can help me to find the area of a 2-D object in Cartesian plane , when we know coordinates of every points. Eg : I want to calculate the area of a triangular. A(12,34) B(45,89) C(25,35)

I want a common algorithm to find any 2-D object's area.

Thank you.

like image 487
devan Avatar asked Jan 24 '26 15:01

devan


2 Answers

Here you go, uses triangulation. This was literally the top result off Google when I searched "area of polygon given set of points". Please do your research before posting.

like image 119
orangemoney52 Avatar answered Jan 27 '26 01:01

orangemoney52


If your object is a simple polygon, there's no need to triangulate it to compute its area. There's a simple formula that depends only on the coordinates of the vertices. See http://en.wikipedia.org/wiki/Polygon#Area_and_centroid

like image 23
lhf Avatar answered Jan 27 '26 01:01

lhf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!