Matrix.Rotate(Double) 메서드

정의

원점을 기준으로 지정한 각도만큼 이 Matrix 구조체에 회전을 적용합니다.

public:
 void Rotate(double angle);
public void Rotate (double angle);
member this.Rotate : double -> unit
Public Sub Rotate (angle As Double)

매개 변수

angle
Double

회전 각도입니다.

예제

다음 예제에서는 회전 하는 방법을 보여 줍니다는 Matrix합니다.

private Matrix rotateExample()
{
    
    // Creating a Matrix structure.
    Matrix myMatrix = new Matrix(5, 10, 15, 20, 25, 30);
    
    // Rotate the matrix 90 degrees about the origin.
    // myMatrix becomes equal to (-10, 5, -20, 15, -30, 25).
    myMatrix.Rotate(90);
    
    return myMatrix; 
}

적용 대상

추가 정보