Examples of transformInPlace()


Examples of mikera.matrixx.AMatrix.transformInPlace()

  }
 
  public ATransform compose(AAffineTransform a) {
    AVector v=a.copyOfTranslationVector();
    AMatrix thisM=getMatrix();
    thisM.transformInPlace(v);
    v.add(getTranslation().getTranslationVector());
   
    AMatrix m=thisM.compose(a.getMatrix());
   
    return Transformz.createAffineTransform(m, v);
View Full Code Here

Examples of mikera.matrixx.AMatrix.transformInPlace()

  @Override
  public AAffineTransform inverse() {
    AMatrix m=getMatrix().inverse();
    AVector v=getTranslation().getTranslationVector().clone();
    v.negate();
    m.transformInPlace(v);
    return Transformz.createAffineTransform(m, v);
  }
 
  @Override
  public boolean isLinear() {
View Full Code Here

Examples of mikera.matrixx.Matrix33.transformInPlace()

    Vector3 axis=Vector3.of(1,2,3);
    Vector3 v=Vector3.of(Math.random(),Math.random(),Math.random());

    Matrix33 rot=Matrixx.createRotationMatrix(axis, Math.random());
    for (int i=0; i<runs; i++) {
      rot.transformInPlace(v);
    }
  }
 
  public void timeVectorAddMultiple(int runs) {
    AVector v=Vector.of(1,2,3);
View Full Code Here

Examples of mikera.matrixx.Matrix33.transformInPlace()

    Matrix33 m=new Matrix33(1,2,3,4,5,6,7,8,9);
   
    for (int i=0; i<runs; i++) {
      v.add(smallDelta);
      t.set(v);
      m.transformInPlace(t);
    }
   
    r.set(t);
  }
 
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.