Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

b4cdac7b dda8 e0e0 120b 140f08ba9d50

haplokuon edited this page May 6, 2023 · 1 revision

Matrix2 Structure

netDxf 3.0.0 Library

Represents a 2x2 double precision matrix.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public struct Matrix2 : IEquatable<Matrix2>

VB

Public Structure Matrix2
	Implements IEquatable(Of Matrix2)

C++

public value class Matrix2 : IEquatable<Matrix2>

F#

[<SealedAttribute>]
type Matrix2 = 
    struct
        inherit ValueType
        interface IEquatable<Matrix2>
    end
Inheritance Object → ValueType → Matrix2
Implements IEquatable(Matrix2)

Constructors

Matrix2 Initializes a new instance of Matrix2.

Properties

Identity Gets the identity matrix.
IsIdentity Gets if the actual matrix is the identity.
Item Gets or sets the component at the given row and column index in the matrix.
M11 Gets or sets the matrix element [0,0].
M12 Gets or sets the matrix element [0,1].
M21 Gets or sets the matrix element [1,0].
M22 Gets or sets the matrix element [1,1].
Zero Gets the zero matrix.

Methods

Add Matrix addition.
Determinant Calculate the determinant of the actual matrix.
Equals(Matrix2) Check if the components of two matrices are approximate equal.
Equals(Object) Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object))
Equals(Matrix2, Matrix2) Check if the components of two matrices are approximate equal.
Equals(Matrix2, Double) Check if the components of two matrices are approximate equal.
Equals(Matrix2, Matrix2, Double) Check if the components of two matrices are approximate equal.
GetHashCode Returns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetType Gets the Type of the current instance.
(Inherited from Object)
Inverse Calculates the inverse matrix.
Multiply(Matrix2, Matrix2) Product of two matrices.
Multiply(Matrix2, Vector2) Product of a matrix with a vector.
Multiply(Matrix2, Double) Product of a matrix with a scalar.
Rotation Builds a rotation matrix for a rotation.
Scale(Double) Build a scaling matrix.
Scale(Vector2) Build a scaling matrix.
Scale(Double, Double) Build a scaling matrix.
Subtract Matrix subtraction.
ToString() Obtains a string that represents the matrix.
(Overrides ValueType.ToString())
ToString(IFormatProvider) Obtains a string that represents the matrix.
Transpose Obtains the transpose matrix.

Operators

Addition(Matrix2, Matrix2) Matrix addition.
Equality(Matrix2, Matrix2) Check if the components of two matrices are equal.
Inequality(Matrix2, Matrix2) Check if the components of two matrices are different.
Multiply(Matrix2, Matrix2) Product of two matrices.
Multiply(Matrix2, Vector2) Product of a matrix with a vector.
Multiply(Matrix2, Double) Product of a matrix with a scalar.
Subtraction(Matrix2, Matrix2) Matrix subtraction.

See Also

Reference

netDxf Namespace

Clone this wiki locally