[]
        
(Showing Draft Content)

C1.Util.DX.Matrix5x4

Matrix5x4 Struct

Represents a 5x4 matrix for the built-in ColorMatrix effect.

Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public struct Matrix5x4 : IEquatable<Matrix5x4>, IFormattable

Constructors

Name Description
Matrix5x4(float)

Initializes a new instance of the Matrix5x4 struct.

Matrix5x4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)

Initializes a new instance of the Matrix5x4 struct.

Matrix5x4(float[])

Initializes a new instance of the Matrix5x4 struct.

Fields

Name Description
Identity

The identity Matrix5x4.

M11

Value at row 1 column 1 of the Matrix5x4.

M12

Value at row 1 column 2 of the Matrix5x4.

M13

Value at row 1 column 3 of the Matrix5x4.

M14

Value at row 1 column 4 of the Matrix5x4.

M21

Value at row 2 column 1 of the Matrix5x4.

M22

Value at row 2 column 2 of the Matrix5x4.

M23

Value at row 2 column 3 of the Matrix5x4.

M24

Value at row 2 column 4 of the Matrix5x4.

M31

Value at row 3 column 1 of the Matrix5x4.

M32

Value at row 3 column 2 of the Matrix5x4.

M33

Value at row 3 column 3 of the Matrix5x4.

M34

Value at row 3 column 4 of the Matrix5x4.

M41

Value at row 4 column 1 of the Matrix5x4.

M42

Value at row 4 column 2 of the Matrix5x4.

M43

Value at row 4 column 3 of the Matrix5x4.

M44

Value at row 4 column 4 of the Matrix5x4.

M51

Value at row 5 column 1 of the Matrix5x4.

M52

Value at row 5 column 2 of the Matrix5x4.

M53

Value at row 5 column 3 of the Matrix5x4.

M54

Value at row 5 column 4 of the Matrix5x4.

SizeInBytes

The size of the Matrix5x4 type, in bytes.

Zero

A Matrix5x4 with all of its components set to zero.

Properties

Name Description
IsIdentity

Gets a value indicating whether this instance is an identity Matrix5x4.

this[int]

Gets or sets the component at the specified index.

this[int, int]

Gets or sets the component at the specified index.

Row1

Gets or sets the first row in the Matrix5x4; that is M11, M12, M13, and M14.

Row2

Gets or sets the second row in the Matrix5x4; that is M21, M22, M23, and M24.

Row3

Gets or sets the third row in the Matrix5x4; that is M31, M32, M33, and M34.

Row4

Gets or sets the fourth row in the Matrix5x4; that is M41, M42, M43, and M44.

Row5

Gets or sets the fifth row in the Matrix5x4; that is M51, M52, M53, and M54.

Methods

Name Description
Add(Matrix5x4, Matrix5x4)

Determines the sum of two matrices.

AddRef(out Matrix5x4, ref Matrix5x4, ref Matrix5x4)

Determines the sum of two matrices.

Divide(Matrix5x4, float)

Divides a Matrix5x4 by the given value.

DivideRef(out Matrix5x4, ref Matrix5x4, float)

Divides a Matrix5x4 by the given value.

Equals(Matrix5x4)

Determines whether the specified Matrix5x4 is equal to this instance.

Equals(object)

Determines whether the specified object is equal to this instance.

EqualsRef(ref Matrix5x4)

Determines whether the specified Matrix5x4 is equal to this instance.

GetHashCode()

Returns a hash code for this instance.

Lerp(Matrix5x4, Matrix5x4, float)

Performs a linear interpolation between two matrices based on the given weighting.

LerpRef(out Matrix5x4, ref Matrix5x4, ref Matrix5x4, float)

Performs a linear interpolation between two matrices based on the given weighting.

Multiply(Matrix5x4, float)

Scales a Matrix5x4 by the given value.

MultiplyRef(out Matrix5x4, ref Matrix5x4, float)

Scales a Matrix5x4 by the given value.

Negate(Matrix5x4)

Negates a Matrix5x4.

NegateRef(ref Matrix5x4)

Negates a Matrix5x4.

NegateRef(out Matrix5x4, ref Matrix5x4)

Negates a Matrix5x4.

Subtract(Matrix5x4, Matrix5x4)

Determines the difference between two matrices.

SubtractRef(out Matrix5x4, ref Matrix5x4, ref Matrix5x4)

Determines the difference between two matrices.

ToArray()

Creates an array containing the elements of the Matrix5x4.

ToString()

Returns a string that represents the current object.

ToString(IFormatProvider)

Returns a string that represents this instance.

ToString(string)

Returns a string that represents this instance.

ToString(string, IFormatProvider)

Returns a string that represents this instance.

Operators

Name Description
operator +(Matrix5x4, Matrix5x4)

Adds two matricies.

operator /(Matrix5x4, float)

Scales a Matrix5x4 by a given value.

operator ==(Matrix5x4, Matrix5x4)

Tests for equality between two objects.

operator !=(Matrix5x4, Matrix5x4)

Tests for inequality between two objects.

operator *(Matrix5x4, float)

Scales a Matrix5x4 by a given value.

operator *(float, Matrix5x4)

Scales a Matrix5x4 by a given value.

operator -(Matrix5x4, Matrix5x4)

Subtracts two matricies.

operator -(Matrix5x4)

Negates a Matrix5x4.