Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21213/src/net/sourceforge/bprocessor/model
Modified Files:
CoordinateSystem.java
Log Message:
the given vectors are made orthogonal and normalized. The returned i, j, n are no longer copies
Index: CoordinateSystem.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/CoordinateSystem.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CoordinateSystem.java 20 Jul 2006 13:00:40 -0000 1.14
--- CoordinateSystem.java 21 Jul 2006 10:44:53 -0000 1.15
***************
*** 38,42 ****
/**
! * Constructor
* @param i The i vector
* @param j The j vector
--- 38,42 ----
/**
! * Constructor secure that they all are orthogonal to each other and normalized
* @param i The i vector
* @param j The j vector
***************
*** 50,55 ****
n.normalize();
this.i = i;
! this.j = j;
! this.n = n;
onlyPlane = false;
}
--- 50,55 ----
n.normalize();
this.i = i;
! this.j = n.cross(this.i);
! this.n = this.i.cross(this.j);
onlyPlane = false;
}
***************
*** 94,98 ****
*/
public Vertex getI() {
! return i.copy();
}
--- 94,98 ----
*/
public Vertex getI() {
! return i;
}
***************
*** 102,106 ****
*/
public Vertex getJ() {
! return j.copy();
}
--- 102,106 ----
*/
public Vertex getJ() {
! return j;
}
***************
*** 110,114 ****
*/
public Vertex getN() {
! return n.copy();
}
--- 110,114 ----
*/
public Vertex getN() {
! return n;
}
|