Generated by DocFX

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)
Syntax
public class TransformMatrix : IEquatable<TransformMatrix>

Constructors

| Improve this Doc View Source

TransformMatrix()

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
public TransformMatrix()
| Improve this Doc View Source

TransformMatrix(TransformMatrix)

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

TransformMatrix(IEnumerable<Double>)

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

M00

Declaration
public double M00 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M01

Declaration
public double M01 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M02

Declaration
public double M02 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M03

Declaration
public double M03 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M10

Declaration
public double M10 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M11

Declaration
public double M11 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M12

Declaration
public double M12 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M13

Declaration
public double M13 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M20

Declaration
public double M20 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M21

Declaration
public double M21 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M22

Declaration
public double M22 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M23

Declaration
public double M23 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M30

Declaration
public double M30 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M31

Declaration
public double M31 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M32

Declaration
public double M32 { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

M33

Declaration
public double M33 { get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Combine(TransformMatrix)

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
Type Name Description
TransformMatrix other
Returns
Type Description
TransformMatrix

Combined transformation matrix.

| Improve this Doc View Source

Equals(TransformMatrix)

Declaration
public bool Equals(TransformMatrix other)
Parameters
Type Name Description
TransformMatrix other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

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

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
| Improve this Doc View Source

Transpose()

Transposes matrix by swapping columns and rows.

Declaration
public TransformMatrix Transpose()
Returns
Type Description
TransformMatrix

The transposed matrix.

Operators

| Improve this Doc View Source

Multiply(TransformMatrix, TransformMatrix)

Multiplies two transform matrices.

Declaration
public static TransformMatrix operator *(TransformMatrix a, TransformMatrix b)
Parameters
Type Name Description
TransformMatrix a

Matrix A.

TransformMatrix b

Matrix B.

Returns
Type Description
TransformMatrix

The resulting matrix AB.

| Improve this Doc View Source

Multiply(Point3, TransformMatrix)

Transforms the specified point by the matrix.

Declaration
public static Point3 operator *(Point3 p, TransformMatrix m)
Parameters
Type Name Description
Point3 p

The point to transform.

TransformMatrix m

The transformation matrix.

Returns
Type Description
Point3

The transformed point.

Implements

System.IEquatable<T>