factored out common methods into GeometricOpertaions.pde
Merge pull request #24 from whyi/geometric_operations

factored out common methods into GeometricOpertaions.pde