[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Edge.java,1.34,1.35
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2006-02-16 21:05:05
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25343 Modified Files: Edge.java Log Message: Added method for getting the direction of the Edge as a vertex Index: Edge.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Edge.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** Edge.java 11 Feb 2006 16:20:27 -0000 1.34 --- Edge.java 16 Feb 2006 21:04:53 -0000 1.35 *************** *** 408,411 **** --- 408,420 ---- return false; } + + /** + * Gets a vector representing the direction of the edge. + * From the "from" point and to the "to" point + * @return the direction. + */ + public Vertex getDirection() { + return to.minus(from); + } /** |