This documentation is archived and is not being maintained.

Matrix.RotateAt Method

Rotates this matrix about the specified point.

Namespace: System.Windows.Media
Assembly: WindowsBase (in windowsbase.dll)

public void RotateAt (
	double angle,
	double centerX,
	double centerY
)
public void RotateAt (
	double angle, 
	double centerX, 
	double centerY
)
public function RotateAt (
	angle : double, 
	centerX : double, 
	centerY : double
)
You cannot use methods in XAML.

Parameters

angle

The angle, in degrees, by which to rotate this matrix.

centerX

The x-coordinate of the point about which to rotate this matrix.

centerY

The y-coordinate of the point about which to rotate this matrix.

The following example shows how to rotate a Matrix about a specified point.

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; 

}

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: