Package math

Class MatriceRotation

java.lang.Object
math.MatriceRotation
All Implemented Interfaces:
Serializable

public class MatriceRotation extends Object implements Serializable
Classe qui permet d'instancer des matrices de rotation pour permettre de rotationner différents objets
See Also:
  • Constructor Details

    • MatriceRotation

      public MatriceRotation(double angleRotation)
      Matrice qui possède un angle en radian pour rotationner les blocs
      Parameters:
      angleRotation - l'angle en radian
  • Method Details

    • rotationner

      public Point2D.Double rotationner(Point2D pointARotationner)
      Méthode qui permet de retationner un point précis selon l'angle de rotation à l'aide de la matrice de rotation
      Parameters:
      pointARotationner - Le point à retationner
      Returns:
      Le point transformé