Simple geometry for Java