Exemple #1
0
 /**
  * rotates the Vertex array around the rotationpoint by the given degree.
  *
  * @param rotationPoint the rotation point
  * @param degree the degree
  * @param inputArray the input array
  * @return the rotated vector3D array
  */
 public static Vertex[] zRotateVectorArray(
     Vertex[] inputArray, Vector3D rotationPoint, float degree) {
   return Vertex.transFormArray(Matrix.getZRotationMatrix(rotationPoint, degree), inputArray);
 }
Exemple #2
0
 /**
  * scales the Vertex[] around the scalingpoint by the factors given for each dimension.
  *
  * @param inputArray the input array
  * @param scalingPoint the scaling point
  * @param X the x
  * @param Y the y
  * @param Z the z
  * @return the resulting vector array
  */
 public static Vertex[] scaleVectorArray(
     Vertex[] inputArray, Vector3D scalingPoint, float X, float Y, float Z) {
   return Vertex.transFormArray(Matrix.getScalingMatrix(scalingPoint, X, Y, Z), inputArray);
 }
Exemple #3
0
 /**
  * translates an array of Vertex by the given amounts in the directionvector.
  *
  * @param inputArray the input array
  * @param directionVector the direction vector
  * @return the vertex[]
  */
 public static Vertex[] translateArray(Vertex[] inputArray, Vector3D directionVector) {
   return Vertex.transFormArray(
       Matrix.getTranslationMatrix(
           directionVector.getX(), directionVector.getY(), directionVector.getZ()),
       inputArray);
 }