Matrix4.Matrix4

Matrix4(Vector4, Vector4, Vector4, Vector4)

Constructs matrix from 4 rows.

public Matrix4(Vector4 r0, Vector4 r1, Vector4 r2, Vector4 r3)
ParameterTypeDescription
r0Vector4R0.
r1Vector4R1.
r2Vector4R2.
r3Vector4R3.

See Also


Matrix4(double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)

Initializes a new instance of the Matrix4 struct.

public Matrix4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, 
    double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, 
    double m33)
ParameterTypeDescription
m00DoubleM00.
m01DoubleM01.
m02DoubleM02.
m03DoubleM03.
m10DoubleM10.
m11DoubleM11.
m12DoubleM12.
m13DoubleM13.
m20DoubleM20.
m21DoubleM21.
m22DoubleM22.
m23DoubleM23.
m30DoubleM30.
m31DoubleM31.
m32DoubleM32.
m33DoubleM33.

Examples

var mat = new Matrix4(
    1, 0, 0, 0,
    0, 1, 0, 0,
    0, 0, 1, 0,
    10, 20, 0, 1);
var pos = new Vector3(10, 0, -1);
var transformed = mat * pos;

See Also


Matrix4(FMatrix4)

Construct Matrix4 from an FMatrix4 instance

public Matrix4(FMatrix4 m)
ParameterTypeDescription
mFMatrix4

See Also


Matrix4(double[])

Initializes a new instance of the Matrix4 struct.

public Matrix4(double[] m)
ParameterTypeDescription
mDouble[]M.

See Also