コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public ProjectionMatrix(Ngon ngon) : this(ngon.getOrthonormal())
 {
 }
コード例 #4
0
 public PluckerMatrix(Ngon ngon) : this(ngon.getOrthonormal())
 {
 }