* Computes the Intersection Matrix for the two given geometry objects
* @return Intersection Matrix
*/
public IntersectionMatrix computeIM() {
IntersectionMatrix tIM = new IntersectionMatrix();
// since Geometries are finite and embedded in a 2-D space, the EE
// element must always be 2
tIM.set(Location.EXTERIOR, Location.EXTERIOR, 2);
// if the Geometries don't overlap there is nothing to do
// if (!arg[0].getGeometry().getEnvelopeInternal().intersects(
// arg[1].getGeometry().getEnvelopeInternal())) {
EnvelopeImpl env1 = (EnvelopeImpl) arg[0].getGeometry().getEnvelope();