Matrix.RotateAt(Double, Double, Double) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Fait pivoter cette matrice sur le point spécifié.
public:
void RotateAt(double angle, double centerX, double centerY);
public void RotateAt(double angle, double centerX, double centerY);
member this.RotateAt : double * double * double -> unit
Public Sub RotateAt (angle As Double, centerX As Double, centerY As Double)
Paramètres
- angle
- Double
Angle, en degrés, par lequel faire pivoter cette matrice.
- centerX
- Double
Coordonnée x du point sur lequel faire pivoter cette matrice.
- centerY
- Double
Coordonnée y du point sur lequel faire pivoter cette matrice.
Exemples
L’exemple suivant montre comment faire pivoter un Matrix point spécifié.
private Matrix rotateAboutPointExample()
{
// Creating a Matrix structure.
Matrix myMatrix = new Matrix(5, 10, 15, 20, 25, 30);
// Rotate the matrix 90 degrees about the point (100,100).
// myMatrix becomes equal to (-10, 4, -20, 15, 170, 25).
myMatrix.RotateAt(90, 100, 100);
return myMatrix;
}