Class TransformMatrix
A column ordered 4x4 transformation matrix.
M00 M10 M20 M30
M01 M11 M21 M31
M02 M12 M22 M32
M03 M13 M23 M33
Inheritance
System.Object
TransformMatrix
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
public class TransformMatrix : IEquatable<TransformMatrix>
Constructors
|
Improve this Doc
View Source
Creates a TransformMatrix set to the identity matrix.
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
Declaration
|
Improve this Doc
View Source
Creates a TransformMatrix by copying the values from another.
Declaration
public TransformMatrix(TransformMatrix m)
Parameters
Type |
Name |
Description |
TransformMatrix |
m |
TransformMatrix to copy the values from.
|
|
Improve this Doc
View Source
Creates a TransformMatrix from a collection of 12 values representing 4 column vectors of 3 values each.
Declaration
public TransformMatrix(IEnumerable<double> values)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Double> |
values |
|
Properties
|
Improve this Doc
View Source
Declaration
public double M00 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M01 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M02 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M03 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M10 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M11 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M12 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M13 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M20 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M21 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M22 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M23 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M30 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M31 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M32 { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double M33 { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
Combines this transform matrix with another. Order matters.
E.g. If you call translation.Combine(rotation), the combined transformation will represent a translation, followed by a rotation.
This is the same as using the * operator where M = rotation * translation.
Declaration
public TransformMatrix Combine(TransformMatrix other)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public bool Equals(TransformMatrix other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Transposes matrix by swapping columns and rows.
Declaration
public TransformMatrix Transpose()
Returns
Operators
|
Improve this Doc
View Source
Multiplies two transform matrices.
Declaration
public static TransformMatrix operator *(TransformMatrix a, TransformMatrix b)
Parameters
Returns
|
Improve this Doc
View Source
Transforms the specified point by the matrix.
Declaration
public static Point3 operator *(Point3 p, TransformMatrix m)
Parameters
Returns
Type |
Description |
Point3 |
The transformed point.
|
Implements
System.IEquatable<T>