Geom_2D 2D geometry classes and methods There is much functionality here. Peruse GD for the basic methods. All the classes refer to that. GD is also the messiest part.