NMatrix Structure Members
In This Topic
The following tables list the members exposed by NMatrix.
Public Constructors
Public Fields
| Name | Description |
| Identity | The Identity matrix (all members are equal to 0, except M11 and M22 which are equal to 1) |
| Zero | The Zero matrix (all members are equal to 0) |
Top
Public Properties
| Name | Description |
| Determinant | Gets the determinant of this matrix |
| DX | DX matrix element |
| DY | DY matrix element |
| IsIdentity | Determines whether this is the identity matrix |
| IsInvertible | Determines whether this matrix is invertible |
| IsZero | Determines whether this is the zero matrix |
| M11 | M11 matrix element |
| M12 | M12 matrix element |
| M21 | M21 matrix element |
| M22 | M22 matrix element |
| Rotation | Obtains the rotation (in radians). The rotatoin is calculated as the angle between the transformed (0, 0);(1, 0) vector and the X axis. |
| ScaleX | Obtains the X scale. The X scale is calculated as the distance between the transformed (0, 0) and (1, 0) points. |
| ScaleY | Obtains the Y scale. The Y scale is calculated as the distance between the transformed (0, 0) and (0, 1) points |
Top
Public Methods
| Name | Description |
| CreateBoundsFitMatrix | Creates a matrix that fits the oldBounds into the newBounds, by preserving aspect ratio. |
| CreateBoundsStretchMatrix | Creates a matrix that transforms coordinates from one rectangle to another. |
| CreateRotationMatrix | Overloaded. Creates a new rotation matrix |
| CreateRotationMatrixRounded | Creates a new rotation matrix |
| CreateScalingMatrix | Overloaded. Creates a new scaling matrix |
| CreateSkewMatrix | Creates a skewing matrix |
| CreateTranslationMatrix | Creates a new translation matrix |
| Deserialize | Deserializes the object state from the specified property bag. |
| Divide | Divides this matrix with the specified matrix and records the result in this matrix |
| Equals | Overloaded. Checks whether this matrix is equal to the matrix size |
| GetHashCode | Overriden because Equals was overriden |
| GetTransformedPoints | Overloaded. Gets points that are the result of transforming the specified points with this matrix. |
| Invert | Inverts this matrix if it is invertible. Otherwise throws an exception. |
| InvertBounds | Untransfrom the specified bounds |
| InvertPoint | Applies the inverted transform to the specified point |
| InvertPoints | Applies the inverted Transform to the specified points |
| InvertRect | Applies the inverted transform to the specified rectangle |
| Multiply | Multiplies this matrix with the specified matrix and records the result in this matrix |
| PrependMultiply | Multiplies the specified matrix with this matrix and record the result in this matrix |
| PrependRotate | Overloaded. Prepends a rotation matrix to this matrix. |
| PrependScale | Overloaded. Prepends a scale matrix to this matrix. |
| PrependSkew | Prepends a skew matrix to this matrix |
| PrependTranslate | Prepends a translate matrix to this matrix. |
| Reset | Resets this matrix to have the elements of the identity matrix. |
| Rotate | Overloaded. Applies a rotation around the 0, 0 point with specified angle. |
| Scale | Overloaded. Appends a scaling matrix to this this matrix. |
| Serialize | Serializes the object state into the specified property bag. |
| Skew | Appends a skew matrix to this matrix |
| ToString | Returns the string representation of this matrix. |
| TransformBounds | Transforms the specified bounds. This method transforms the corners of the specified bounds and then constructs the minimal rectangle, which contains them. |
| TransformPoint | Overloaded. Transforms the specified point coordinates |
| TransformPoints | Overloaded. Transforms the specified points |
| Translate | Appends a translation matrix to this matrix. |
Top
Public Operators
See Also