Matrix.IHandler

public interface Matrix.IHandler : IMatrix
Handler interface for the IMatrix

Properties

ControlObject

object ControlObject { get; }
Gets the control object for this widget
inherited fromIControlObjectSource

Elements

float[] Elements { get; }
Gets the elements of this matrix
inherited fromIMatrix

Methods

Append

void Append(IMatrix matrix)
Append the specified matrix to this matrix
inherited fromIMatrix

Create

#
void Create()
Creates a new identiy matrix
Remarks: An identity matrix is defined as:

| 1 0 0 | | 0 1 0 | | 0 0 1 |

Create

#
void Create(float xx, float yx, float xy, float yy, float x0, float y0)
Creates a new matrix with the specified components
Remarks: The components of the matrix are defined as:

| xx xy 0 | | yx yy 0 | | x0 y0 1 |

xx (float)Xx component of the matrix (scaleX)
yx (float)Yx component of the matrix
xy (float)Xy component of the matrix
yy (float)Yy component of the matrix (scaleY)
x0 (float)X0 component of the matrix (translateX)
y0 (float)Y0 component of the matrix (translateY)

Prepend

void Prepend(IMatrix matrix)
Prepend the specified matrix to this matrix
inherited fromIMatrix

Rotate

void Rotate(float angle)
Prepend a rotation to the matrix around the origin (0,0)
inherited fromIMatrix
angle (float)Angle in degrees to rotate. A positive value indicates a clockwise rotation, whereas a negative value will rotate counter clockwise

RotateAt

void RotateAt(float angle, float centerX, float centerY)
Prepend a rotation around the specified point to the matrix
inherited fromIMatrix
angle (float)Angle in degrees to rotate. A positive value indicates a clockwise rotation, whereas a negative value will rotate counter clockwise
centerX (float)X co-ordinate of the point to rotate around
centerY (float)Y co-ordinate of the point to rotate around

Scale

void Scale(float scaleX, float scaleY)
Prepend a scale to the matrix from the origin (0, 0)
inherited fromIMatrix
scaleX (float)The amount to multiply coordinates along the x axis
scaleY (float)The amount to multiply coordinates along the y axis

ScaleAt

void ScaleAt(float scaleX, float scaleY, float centerX, float centerY)
Prepend a scale to the matrix from the specified point
inherited fromIMatrix
scaleX (float)The amount to multiply coordinates along the x axis
scaleY (float)The amount to multiply coordinates along the y axis
centerX (float)X co-ordinate of the point to scale from
centerY (float)Y co-ordinate of the point to scale from

Skew

void Skew(float skewX, float skewY)
Prepend a skew to the matrix
inherited fromIMatrix
skewX (float)Amount to skew along the X axis, 1.0 does not skew
skewY (float)Amount to skew along the Y axis, 1.0 does not skew

TransformPoint

PointF TransformPoint(Point point)
Transforms the specified point using this matrix transform
inherited fromIMatrix
point (Point)Point to transform
The value of the point transformed by this matrix

TransformPoint

PointF TransformPoint(PointF point)
Transforms the specified point using this matrix transform
inherited fromIMatrix
point (PointF)Point to transform
The value of the point transformed by this matrix

Translate

void Translate(float offsetX, float offsetY)
Prepend a translation to the matrix
inherited fromIMatrix
offsetX (float)The amount to offset along the x axis
offsetY (float)The amount to offset along the y axis