[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Camera.java, 1.44, 1.45
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-09-05 11:18:47
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28852/src/net/sourceforge/bprocessor/model Modified Files: Camera.java Log Message: New mechanism for finding work plane Index: Camera.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Camera.java,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** Camera.java 26 Jun 2007 02:05:04 -0000 1.44 --- Camera.java 5 Sep 2007 11:18:46 -0000 1.45 *************** *** 245,249 **** /** * @return Returns the center. - * @hibernate.property */ public double[] getCenter() { --- 245,248 ---- *************** *** 252,255 **** --- 251,265 ---- /** + * + * @return direction + */ + public Vertex getDirection() { + double x = center[0] - camera[0]; + double y = center[1] - camera[1]; + double z = center[2] - camera[2]; + return new Vertex(x, y, z); + } + + /** * @param width The width of the camera. */ |