C# Класс Wpf.Controls.PanAndZoom.MatrixHelper

WPF Matrix helper methods.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Identity System.Windows.Media.Matrix

Открытые методы

Метод Описание
Rotation ( double radians ) : System.Windows.Media.Matrix

Creates a matrix that rotates.

Rotation ( double angle, System.Windows.Vector center ) : System.Windows.Media.Matrix

Creates a matrix that rotates about a specified center.

Rotation ( double angle, double centerX, double centerY ) : System.Windows.Media.Matrix

Creates a matrix that rotates about a specified center.

Scale ( double scaleX, double scaleY ) : System.Windows.Media.Matrix

Creates a matrix that scales along the x-axis and y-axis.

ScaleAt ( double scaleX, double scaleY, double centerX, double centerY ) : System.Windows.Media.Matrix

Creates a matrix that is scaling from a specified center.

ScaleAtPrepend ( System.Windows.Media.Matrix matrix, double scaleX, double scaleY, double centerX, double centerY ) : System.Windows.Media.Matrix

Prepends a scale around the center of provided matrix.

Skew ( float angleX, float angleY ) : System.Windows.Media.Matrix

Creates a skew matrix.

TransformPoint ( System.Windows.Media.Matrix matrix, Point point ) : Point

Transforms a point by this matrix.

Translate ( double offsetX, double offsetY ) : System.Windows.Media.Matrix

Creates a translation matrix using the specified offsets.

TranslatePrepend ( System.Windows.Media.Matrix matrix, double offsetX, double offsetY ) : System.Windows.Media.Matrix

Prepends a translation around the center of provided matrix.

Описание методов

Rotation() публичный статический Метод

Creates a matrix that rotates.
public static Rotation ( double radians ) : System.Windows.Media.Matrix
radians double Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis.
Результат System.Windows.Media.Matrix

Rotation() публичный статический Метод

Creates a matrix that rotates about a specified center.
public static Rotation ( double angle, System.Windows.Vector center ) : System.Windows.Media.Matrix
angle double Angle of rotation in radians.
center System.Windows.Vector The center of the rotation.
Результат System.Windows.Media.Matrix

Rotation() публичный статический Метод

Creates a matrix that rotates about a specified center.
public static Rotation ( double angle, double centerX, double centerY ) : System.Windows.Media.Matrix
angle double Angle of rotation in radians.
centerX double The center X-coordinate of the rotation.
centerY double The center Y-coordinate of the rotation.
Результат System.Windows.Media.Matrix

Scale() публичный статический Метод

Creates a matrix that scales along the x-axis and y-axis.
public static Scale ( double scaleX, double scaleY ) : System.Windows.Media.Matrix
scaleX double Scaling factor that is applied along the x-axis.
scaleY double Scaling factor that is applied along the y-axis.
Результат System.Windows.Media.Matrix

ScaleAt() публичный статический Метод

Creates a matrix that is scaling from a specified center.
public static ScaleAt ( double scaleX, double scaleY, double centerX, double centerY ) : System.Windows.Media.Matrix
scaleX double Scaling factor that is applied along the x-axis.
scaleY double Scaling factor that is applied along the y-axis.
centerX double The center X-coordinate of the scaling.
centerY double The center Y-coordinate of the scaling.
Результат System.Windows.Media.Matrix

ScaleAtPrepend() публичный статический Метод

Prepends a scale around the center of provided matrix.
public static ScaleAtPrepend ( System.Windows.Media.Matrix matrix, double scaleX, double scaleY, double centerX, double centerY ) : System.Windows.Media.Matrix
matrix System.Windows.Media.Matrix The matrix to prepend scale.
scaleX double Scaling factor that is applied along the x-axis.
scaleY double Scaling factor that is applied along the y-axis.
centerX double The center X-coordinate of the scaling.
centerY double The center Y-coordinate of the scaling.
Результат System.Windows.Media.Matrix

Skew() публичный статический Метод

Creates a skew matrix.
public static Skew ( float angleX, float angleY ) : System.Windows.Media.Matrix
angleX float Angle of skew along the X-axis in radians.
angleY float Angle of skew along the Y-axis in radians.
Результат System.Windows.Media.Matrix

TransformPoint() публичный статический Метод

Transforms a point by this matrix.
public static TransformPoint ( System.Windows.Media.Matrix matrix, Point point ) : Point
matrix System.Windows.Media.Matrix The matrix to use as a transformation matrix.
point System.Windows.Point >The original point to apply the transformation.
Результат System.Windows.Point

Translate() публичный статический Метод

Creates a translation matrix using the specified offsets.
public static Translate ( double offsetX, double offsetY ) : System.Windows.Media.Matrix
offsetX double X-coordinate offset.
offsetY double Y-coordinate offset.
Результат System.Windows.Media.Matrix

TranslatePrepend() публичный статический Метод

Prepends a translation around the center of provided matrix.
public static TranslatePrepend ( System.Windows.Media.Matrix matrix, double offsetX, double offsetY ) : System.Windows.Media.Matrix
matrix System.Windows.Media.Matrix The matrix to prepend translation.
offsetX double X-coordinate offset.
offsetY double Y-coordinate offset.
Результат System.Windows.Media.Matrix

Описание свойств

Identity публичное статическое свойство

Gets the identity matrix.
public static Matrix,System.Windows.Media Identity
Результат System.Windows.Media.Matrix