This lightweight Processing/Java library contains basic tools for calculating geometry in two dimensions. It includes a vector class that offers an alternative to the build in PVector class. The library only adds functions that I either miss in the existing collection of libraries or think could be simplified.
Vect2 stores and manipulates vectors and positions in 2D.
Space2 serves as a toolbox for geometry calculations in 2D.
The library does not depend on other libraries and should be able to run on most Processing versions and all OS platforms (please report problems).
DOWNLOAD
RELEASE 04. UPDATED THE 4TH OF JANUARY 2009
http://sixthsensor.dk/p5/point2line04.zip
EXAMPLES

The following projects use earlier versions of the Vect2 class in Processing:
Life Like,
Power Plant,
Lightbender,
TimeWheel,
Hallo Holly,
Infected Area,
Improvibes...
ABOUT
The library has been under development since 2005 and and it still is. It will be kept slim and basic. It was originally created for my personal design projects but is now used for my teaching purposes as well. Suggestions concerning optimisations and extensions are most welcome. The library is free software; you can redistribute it and/or modify it for any desirable purpose. It is distributed in the hope that it will be useful, but without any warranty.
Carl Emil Carlsen
2008+
@libname Point 2 Line