Matrix.RotateAt(Double, Double, Double) 메서드

정의

지정한 점을 기준으로 이 매트릭스를 회전합니다.

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)

매개 변수

angle
Double

이 매트릭스를 회전할 각도(도)입니다.

centerX
Double

이 매트릭스를 회전할 때 기준으로 사용할 점의 X 좌표입니다.

centerY
Double

이 매트릭스를 회전할 때 기준으로 사용할 점의 Y 좌표입니다.

예제

다음 예제에서는 회전 하는 방법을 보여 줍니다는 Matrix 지정된 된 지점에 대 한 합니다.

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

적용 대상