weedweaver
10-27-2003, 02:52 PM
I am writing a program that calculates the area of a polygon (any shape) given the 5 vertices.
Does any-one know the maths behind calculating areas of polygons? Think its something to do with differentiation and area
under a line?
im creating a type
type vertex = (Float,Float)
data shape =
| Polygon [vertex] **List of tuples**
so for any given 5 verticies it will calcualte the area. if anyone knows any good maths web-sites where i could find the maths for working it out, or if anyone actually knows, please let me know.
Thanks.
Matt
Does any-one know the maths behind calculating areas of polygons? Think its something to do with differentiation and area
under a line?
im creating a type
type vertex = (Float,Float)
data shape =
| Polygon [vertex] **List of tuples**
so for any given 5 verticies it will calcualte the area. if anyone knows any good maths web-sites where i could find the maths for working it out, or if anyone actually knows, please let me know.
Thanks.
Matt