Brankonymous's blog

By Brankonymous, history, 5 years ago, In English

Does anyone know any source material or code, when given n coordinate points, you need to calculate area of given non-convex polygone.

  • Vote: I like it
  • -8
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +11 Vote: I do not like it

You can use algorithm for triangution polygon and then sum up areas of all triangles.

»
5 years ago, # |
  Vote: I like it +5 Vote: I do not like it

as long as the polygon is simple you can use the shoelace formula