Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6715/src/net/sourceforge/bprocessor/gl/model
Modified Files:
Intersection.java
Log Message:
Refactoring of Move Tool
Index: Intersection.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model/Intersection.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Intersection.java 3 Aug 2006 14:35:29 -0000 1.4
--- Intersection.java 4 Aug 2006 11:48:11 -0000 1.5
***************
*** 140,142 ****
--- 140,159 ----
return buffer.toString();
}
+
+ /**
+ * Return a copy
+ * @return Copy
+ */
+ public Intersection copy() {
+ return new Intersection(vertex.copy(), type, object);
+ }
+
+ /**
+ * Test if the vertices are close
+ * @param other The other intersection
+ * @return True if close
+ */
+ public boolean equalEps(Intersection other) {
+ return vertex.equalEps(other.vertex());
+ }
}
|