Shoelace Algorithm

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
Mkalo
Prole
Posts: 11
Joined: Thu Dec 29, 2011 11:54 pm

Shoelace Algorithm

Post by Mkalo »

The shoelace formula, or shoelace algorithm, is a mathematical algorithm to determine the area of a simple polygon whose vertices are described by ordered pairs in the plane
Wikipedia
Attachments
Area.love
(520 Bytes) Downloaded 194 times
Bomberman in LÖVE:
http://migre.me/7Beiu
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: Shoelace Algorithm

Post by Ensayia »

It's a neat implementation and it could certainly have a few uses, you could write it into a library and distribute it onto the wiki so that anyone drawing polygons can use algorithm and data.

I'm assuming it just draws the same polygon each time? I can't seem to locate any controls.
Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests