/** * Creates an <code>IntersectionMatrix</code> with the given dimension * symbols. * *@param elements a String of nine dimension symbols in row major order */ public IntersectionMatrix(String elements) { this(); set(elements); }
/** * If the Geometries are disjoint, we need to enter their dimension and * boundary dimension in the Ext rows in the IM */ private void computeDisjointIM(IntersectionMatrix im) { Geometry ga = arg[0].getGeometry(); if (! ga.isEmpty()) { im.set(Location.INTERIOR, Location.EXTERIOR, ga.getDimension()); im.set(Location.BOUNDARY, Location.EXTERIOR, ga.getBoundaryDimension()); } Geometry gb = arg[1].getGeometry(); if (! gb.isEmpty()) { im.set(Location.EXTERIOR, Location.INTERIOR, gb.getDimension()); im.set(Location.EXTERIOR, Location.BOUNDARY, gb.getBoundaryDimension()); } }
public void testToString() throws Exception { IntersectionMatrix i = new IntersectionMatrix(); i.set("012*TF012"); assertEquals("012*TF012", i.toString()); IntersectionMatrix c = new IntersectionMatrix(i); assertEquals("012*TF012", c.toString()); }
im.set(Location.EXTERIOR, Location.EXTERIOR, 2);