[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Vertex.java, 1.50, 1.51 Geometry.jav
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2006-12-05 09:06:19
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27689/src/net/sourceforge/bprocessor/model Modified Files: Vertex.java Geometry.java Log Message: added small things Index: Vertex.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Vertex.java,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** Vertex.java 2 Nov 2006 14:45:38 -0000 1.50 --- Vertex.java 5 Dec 2006 09:06:17 -0000 1.51 *************** *** 312,316 **** * 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) { --- 312,316 ---- * Compute the angle between two vertex (as if they were vectors) * @param v The second vertex ! * @return the angle between the vectors in radian */ public double angle(Vertex v) { Index: Geometry.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Geometry.java,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** Geometry.java 13 Nov 2006 14:56:15 -0000 1.36 --- Geometry.java 5 Dec 2006 09:06:17 -0000 1.37 *************** *** 771,774 **** --- 771,782 ---- } + /** + * Convert radian to degree + * @param radianAngle the radian angle + * @return the angle + */ + public static double radianToDegree(double radianAngle) { + return radianAngle * Math.PI / 180; + } /** |