[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Vertex.java, 1.48, 1.49
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-10-30 15:01:33
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3232/src/net/sourceforge/bprocessor/model Modified Files: Vertex.java Log Message: implemented see from above for surfaces. There have emerged some serious problems with the rotation tool, maybe it is due to wierd roll vectors??? Added Angle(Vertex) on vertex Index: Vertex.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Vertex.java,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** Vertex.java 19 Oct 2006 09:56:21 -0000 1.48 --- Vertex.java 30 Oct 2006 15:01:31 -0000 1.49 *************** *** 295,298 **** --- 295,307 ---- /** + * Compute the angle between two vertex (as if they were vectors) + * @param v The second vertex + * @return the angle between + */ + public double angle(Vertex v) { + return Math.acos(this.dot(v) / (this.length() * v.length())); + } + + /** * compute the lengt of the vertex * @return the length of the vertex |