Hello!

I'm releasing an extraction from an application I'm currently working on. It's a small library for dealing with points and polygons, called Polygons. It really just implements some textbook algorithms w/ Prototype-style JavaScript classes. Check it out here:

  http://polygons.mdaines.com/

The demo on that page (Firefox/Safari only right now) uses the point- in-polygon function and a little trickery (nothing too involved, though) to make dragging non-rectangular objects way more natural. In the application I'm working on, I combine that with the rotation functions.

I don't plan to include anything for drawing, but hey, look at this:

  http://brevity.org/code/google/draw.html

Keep in mind that this is a skittish 0.1 release. I haven't tested it at all yet with IE, and some of the syntax for dealing with Points and Polygons needs to be ironed out a bit.

I hope someone finds it useful!


-- Michael Daines
   http://www.mdaines.com
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to