Properties
Instantiator
#obsolete: Use Matrix.Create() instead
Gets a delegate that can be used to create an identity matrix with little overhead
InstantiatorWithElements
#obsolete: Use Matrix.Create() instead
Gets a delegate that can be used to create instances of a matrix with specified components with little overhead
Returns: The with elements.
Methods
Append the specified
matrices to the matrixCreate
#Creates a new matrix with the specified components
Create
#Creates a new matrix with the specified
elementsParameters:
| elements (float[]) | Elements of the matrix (six components) |
FromRotation
#Creates a new rotation matrix
Parameters:
| angle (float) | Angle in degrees to rotate. A positive value indicates a clockwise rotation, whereas a negative value will rotate counter clockwise |
Returns: A new rotation matrix
FromRotationAt
#Creates a new rotation matrix around a (
centerX, centerY) point with the specified angleParameters:
| 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 |
Returns: A new rotation matrix
FromRotationAt
#Creates a new rotation matrix around a center point with the specified
angleFromScale
#Creates a new matrix with the specified scale factor
FromScale
#Creates a new matrix with the specified
scaleParameters:
| scale (SizeF) | Scale size for the X and Y coordinates |
Returns: A new matrix with a scale transform
FromScaleAt
#Creates a new matrix with a scale at the specified point
FromScaleAt
#Creates a new matrix with a
scale at the specified center pointReturns: A new matrix with a scale transform
FromSkew
#Creates a new matrix with a skew
FromTranslation
#Creates a new matrix with a translation
FromTranslation
#Creates a new matrix with a translation
Parameters:
| offset (PointF) | Offset to translate by |
Returns: A new translation matrix
FromTranslation
#Creates a new matrix with a translation
Parameters:
| offset (SizeF) | Offset to translate by |
Returns: A new translation matrix
Returns the scale coordinates Xx and Yy of the
matrix as a PointF.Creates an inverted copy of the specified matrix.
Parameters:
| matrix (IMatrix) | Matrix to invert. |
Multiply
#Multiply the specified
matrix and matrices.Returns: A new matrix with the product of multiplying each of the specified matrix and matrices
Prepends the specified
matrices to the matrixPrepend a rotation around the specified point to the matrix
Prepend a scale to the matrix from the origin (0, 0)
Prepend a scale to the matrix from the origin (0, 0)
Prepend a scale to the matrix from the specified point
Prepend a scale to the matrix from the specified point
Prepend a scale to the matrix from the specified point
Transforms the rectangle with the current matrix.
Remarks: This returns a rectangle that encompasses the specified
rect after it is translated. When rotating, this means that the new rectangle may be larger in size to encompass the translated rectangle.Parameters:
| matrix (IMatrix) | Matrix to transform each point of the rectangle. |
| rect (RectangleF) | Rectangle to transform. |
Returns: A new rectangle that encompasses the translated
rect.Transforms the size with the current matrix.
Remarks: This will get the transformed size
Prepend a translation to the matrix