public ProjectionMatrix ProjectionMatrixTest(Ngon ngon) { ProjectionMatrix P = new ProjectionMatrix(ngon); for (int j = 0; j < ngon.getOrthonormal().Length; j++) { for (int i = 0; i < ngon.getOrthonormal()[j].Length; i++) { //double fromEdgeVectors = ngon.getOrthonormal()[i][0] * ngon.getOrthonormal()[j][0] + ngon.getOrthonormal()[i][1] * ngon.getOrthonormal()[j][1]; //Assert.AreEqual(fromEdgeVectors, P.columnVectors[i][j]); } } return(P); }
public PluckerMatrix PluckerMatrixTest(Ngon ngon) { PluckerMatrix D = new PluckerMatrix(ngon); for (int j = 0; j < ngon.getOrthonormal().Length; j++) { for (int i = 0; i < ngon.getOrthonormal()[j].Length; i++) { //double fromEdgeVectors = ngon.getOrthonormal()[i][0] * ngon.getOrthonormal()[j][1] - ngon.getOrthonormal()[j][0] * ngon.getOrthonormal()[i][1]; //Assert.AreEqual(fromEdgeVectors, D.columnVectors[i][j]); } } return(D); }
public ProjectionMatrix(Ngon ngon) : this(ngon.getOrthonormal()) { }
public PluckerMatrix(Ngon ngon) : this(ngon.getOrthonormal()) { }