Package mikera.matrixx

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


    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.