[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Vertex.java, 1.35, 1.36
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-07-06 13:13:58
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3932/src/net/sourceforge/bprocessor/model Modified Files: Vertex.java Log Message: Added Tool to creating constructors that currently can only create Points Index: Vertex.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Vertex.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Vertex.java 3 Jul 2006 14:25:07 -0000 1.35 --- Vertex.java 6 Jul 2006 13:13:53 -0000 1.36 *************** *** 292,295 **** --- 292,308 ---- /** + * Tests if this vertex is sufficiently close to another vertex + * @param other The other vertex + * @return True if close + */ + public boolean equalEps(Vertex other) { + double dx = x - other.x; + double dy = y - other.y; + double dz = z - other.z; + return ((Math.abs(dx) < 0.0000001) && + (Math.abs(dy) < 0.0000001) && (Math.abs(dz) < 0.0000001)); + } + + /** * Moves the Vertex a distance * @param dx The x distance |