Matrix.RotateAt(Double, Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Rotates this matrix about the specified point.
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)
Parameters
- angle
- Double
The angle, in degrees, by which to rotate this matrix.
- centerX
- Double
The x-coordinate of the point about which to rotate this matrix.
- centerY
- Double
The y-coordinate of the point about which to rotate this matrix.
Examples
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;
}
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ