Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.28
|
Leadtools Namespace : LeadMatrix Structure |
[TypeConverterAttribute("Leadtools.LeadMatrixConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")] [DataContractAttribute(Name="LeadMatrix", IsNameSetExplicitly=true)] [SerializableAttribute()] public struct LeadMatrix : System.ValueType, System.IFormattable
'Declaration
<TypeConverterAttribute("Leadtools.LeadMatrixConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")> <DataContractAttribute(Name="LeadMatrix", IsNameSetExplicitly=True)> <SerializableAttribute()> Public Structure LeadMatrix Inherits System.ValueType Implements System.IFormattable
'Usage
Dim instance As LeadMatrix
[TypeConverterAttribute("Leadtools.LeadMatrixConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")] [DataContractAttribute(Name="LeadMatrix", IsNameSetExplicitly=true)] [SerializableAttribute()] public class LeadMatrix
typedef struct LeadMatrix
public final class LeadMatrix implements Serializable
JAVASCRIPT_NOSTRUCTS
[TypeConverterAttribute("Leadtools.LeadMatrixConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")] [DataContractAttribute(Name="LeadMatrix", IsNameSetExplicitly=true)] [SerializableAttribute()] public value class LeadMatrix : public System.ValueType, System.IFormattable
A 3x3 matrix is used for transformations in a 2-D x-y plane. Affine transformation matrices can be multiplied to form any number of linear transformations, such as rotation and skew (shear), followed by translation. An affine transformation matrix has its final column equal to (0, 0, 1), so only the members in the first two columns need to be specified. Note that vectors are expressed as row-vectors, not column vectors.
A LeadMatrix is stored using row-major order and has the following structure:
M11 | M12 | 0 |
M21 | M22 | 0 |
OffsetX | OffsetY | 1 |
The members in the last row, OffsetX and OffsetY, represent translation values.
In methods and properties, the transformation matrix is usually specified as a vector with only six members, as follows: