Package mikera.matrixx

Examples of mikera.matrixx.Matrix33.transform()


    Vector3 d=Vector3.of(10.0,0.0,0.0);   
    d.addMultiple(v, 5.0);
    System.out.println(d)
   
    Matrix33 m=Matrixx.createXAxisRotationMatrix(Math.PI);
    Vector3 rotated=m.transform(d);      // rotate 180 degrees around x axis    
    System.out.println(rotated)

  }

}
View Full Code Here


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