Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17910/src/net/sourceforge/bprocessor/model
Modified Files:
Plane.java
Log Message:
Made a additional constructor for plane takin the normal and a point in the plane
Index: Plane.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Plane.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** Plane.java 7 Nov 2006 10:51:24 -0000 1.26
--- Plane.java 13 Dec 2006 17:45:17 -0000 1.27
***************
*** 61,64 ****
--- 61,78 ----
/**
+ * Constructor
+ * @param a the a
+ * @param b the b
+ * @param c the c
+ * @param point a point in the plane
+ */
+ public Plane(double a, double b, double c, Vertex point) {
+ this.a = a;
+ this.b = b;
+ this.c = c;
+ this.d = -(a * point.getX() + b * point.getY() + c * point.getZ());
+ }
+
+ /**
* Return a doublearray {a,b,c,d}
* @return The array
|