Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8353/src/net/sourceforge/bprocessor/model
Modified Files:
Vertex.java
Log Message:
added new constructor taking a array of the arguments x y z
Index: Vertex.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Vertex.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** Vertex.java 12 Jul 2006 12:08:35 -0000 1.37
--- Vertex.java 13 Jul 2006 13:28:24 -0000 1.38
***************
*** 60,63 ****
--- 60,77 ----
/**
+ * Constructor taking a double array with the three coordinates
+ * @param v the array with three coordinates
+ */
+ public Vertex(double[] v) {
+ if (v.length == 3) {
+ setX(v[0]);
+ setY(v[1]);
+ setZ(v[2]);
+ } else {
+ log.error("Wrong amount of arguments were " + v.length + " should be 3");
+ }
+ }
+
+ /**
* Get the name
* @return The name
|