Example #1
0
 /**
  * 围绕任意轴旋转
  *
  * @param theta
  *            弧度
  */
 public void rotate(Vector3 v, float theta)
 {
     martix4Temp.setToRotate(v, theta);
     multiplyBy(martix4Temp);
 }
Example #2
0
 /**
  * 左乘(即后叠加操作)一个围绕任意轴的旋转矩阵
  *
  * @param v
  * @param theta
  *            弧度
  */
 public void postRotate(Vector3 v, float theta)
 {
     matrix4Temp.setToRotate(v, theta);
     matrix4Temp.multiply(this, this);
 }