Examples of toMatrix()


Examples of com.jme3.scene.plugins.blender.constraints.ConstraintHelper.toMatrix()

        Object owner = this.getOwner();// Bone or Node
        if (!target.getClass().equals(owner.getClass())) {
            ConstraintHelper constraintHelper = blenderContext.getHelper(ConstraintHelper.class);

            TempVars tempVars = TempVars.get();
            Matrix4f m = constraintHelper.toMatrix(targetTransform, tempVars.tempMat4);
            tempVars.tempMat42.set(BoneContext.BONE_ARMATURE_TRANSFORMATION_MATRIX);
            if (target instanceof Bone) {
                tempVars.tempMat42.invertLocal();
            }
            m = m.multLocal(tempVars.tempMat42);
View Full Code Here

Examples of com.jme3.scene.plugins.blender.constraints.ConstraintHelper.toMatrix()

            globalBoneMatrix.multLocal(BONE_ARMATURE_TRANSFORMATION_MATRIX);
        }

        Spatial armature = (Spatial) objectHelper.toObject(blenderContext.getFileBlock(armatureObjectOMA).getStructure(blenderContext), blenderContext);
        ConstraintHelper constraintHelper = blenderContext.getHelper(ConstraintHelper.class);
        Matrix4f armatureWorldMatrix = constraintHelper.toMatrix(armature.getWorldTransform(), new Matrix4f());

        // and now compute the final bone matrix in world space
        globalBoneMatrix = armatureWorldMatrix.mult(globalBoneMatrix);

        // create the children
View Full Code Here

Examples of mikera.matrixx.AMatrix.toMatrix()

                SymmetricQRAlgorithmDecomposition alg = createDecomposition();

                assertNotNull(alg.decompose(A));
               
                performStandardTests(alg,A.toMatrix(),-1);
            }
        }
    }

    /**
 
View Full Code Here

Examples of mikera.matrixx.impl.RowMatrix.toMatrix()

  @Test
  public void testRowMatrix() {
    RowMatrix rm = RowMatrix.wrap(Vector.of(1, 2, 3));

    assertEquals(rm.transposeInnerProduct(rm.toMatrix()), rm.getTranspose()
        .innerProduct(rm));
  }

  @Test
  public void testTriangular() {
View Full Code Here

Examples of mikera.matrixx.impl.SparseColumnMatrix.toMatrix()

        M.set(SSIZE-1, SSIZE-1, M.get(SSIZE-1, SSIZE-1) + 3.14159);
    assertFalse(M.equals(D));
        D.addAt(SSIZE-1, SSIZE-1, 3.14159);         // also test addAt
    assertTrue(M.equals(D));

    D = M.toMatrix();
    assertTrue(M.equals(D));
    assertTrue(D.epsilonEquals(M, 0.1));
        M.set(SSIZE-1, SSIZE-1, M.get(SSIZE-1, SSIZE-1) + 3.14159);
    assertFalse(M.equals(D));
        D.set(SSIZE-1, SSIZE-1, D.get(SSIZE-1, SSIZE-1) + 3.14159);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.