Ejemplo n.º 1
0
 @Override
 public void rotateZ(double angle) {
   Point3D point = new Point3D();
   for (int p = 0; p < this.meshPoints.length; p += 3) {
     point.set(meshPoints[p], meshPoints[p + 1], meshPoints[p + 2]);
     point.rotateZ(angle);
     meshPoints[p] = (float) point.x();
     meshPoints[p + 1] = (float) point.y();
     meshPoints[p + 2] = (float) point.z();
   }
 }