[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Line.java, 1.28, 1.29
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2006-12-13 17:44:20
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17485/src/net/sourceforge/bprocessor/model Modified Files: Line.java Log Message: made method to get a vertex some extend from the origin along the direction Index: Line.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Line.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** Line.java 3 Dec 2006 17:51:23 -0000 1.28 --- Line.java 13 Dec 2006 17:44:16 -0000 1.29 *************** *** 178,181 **** --- 178,192 ---- /** + * A point t times the direction from the origin of the line + * @param t the t value + * @return the point + */ + public Vertex getPointAt(double t) { + Vertex tmp = dir.copy(); + tmp.scale(t); + return getOrigin().add(tmp); + } + + /** * @see net.sourceforge.bprocessor.model.Parametric#getGeneralName() */ |