Idioma

Matrix.RotateAt(Double, Double, Double) Método

Definição

Roda esta matriz em torno do ponto especificado.

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)

Parâmetros

angle
Double

O ângulo, em graus, pelo qual se deve rodar esta matriz.

centerX
Double

A coordenada x do ponto em torno do qual se deve rodar esta matriz.

centerY
Double

A coordenada y do ponto em torno do qual se deve rodar esta matriz.

Exemplos

O exemplo seguinte mostra como rodar um Matrix em torno de um ponto especificado.

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; 
}

Aplica-se a