Matrix3x3f

Summary

Represents a 3x3 single-precision floating-point matrix arranged in row-major layout.

Definition

Namespace: SDT4.Managed.Core.Math
Assembly: SDT4.Managed.Core.dll

struct Matrix3x3f
Implements:

IMatrixSpatial<Single, Vector3f, Matrix3x3f>, ISerializable, IEquatable<Matrix3x3f>

Fields

Name Type Description
public m00 Single Value at row 0, column 0.
public m01 Single Value at row 0, column 1.
public m02 Single Value at row 0, column 2.
public m10 Single Value at row 1, column 0.
public m11 Single Value at row 1, column 1.
public m12 Single Value at row 1, column 2.
public m20 Single Value at row 2, column 0.
public m21 Single Value at row 2, column 1.
public m22 Single Value at row 2, column 2.

Properties

Name Type Description
public static get; Zero Matrix3x3f Gets a 3x3 matrix with all elements set to zero.
public static get; Identity Matrix3x3f Gets the 3x3 multiplicative identity matrix.
public get; Item Single Gets the element at the specified row and column indices.
public get; Item Vector3f Gets the row vector at the specified index.
public get; IsOrthoNormal Boolean Gets a value indicating whether the matrix basis vectors are mutually orthogonal and normalised to unit length.

Methods

public static Matrix3x3f FromColumns(Vector3f col0, Vector3f col1, Vector3f col2)

Summary: Constructs a 3x3 matrix from column vectors.

Parameters:

Returns:


public static Matrix3x3f FromRows(Vector3f row0, Vector3f row1, Vector3f row2)

Summary: Constructs a 3x3 matrix from row vectors.

Parameters:

Returns:


public Vector3f GetColumn(Int32 col)

Summary: Retrieves the column vector at the specified index.

Parameters:

Returns:


public Vector3f GetRow(Int32 row)

Summary: Retrieves the row vector at the specified index.

Parameters:

Returns:


public Void SetColumn(Int32 col, Vector3f vec)

Summary: Sets the column vector at the specified index.

Parameters:


public Void SetRow(Int32 row, Vector3f vec)

Summary: Sets the row vector at the specified index.

Parameters:


public Matrix4x4f ToMatrix4x4()

Summary: Promotes this 3x3 matrix to an affine 4x4 matrix with zero translation and homogeneous coordinates.

Returns:


public Single Determinant()

Summary: Calculates the scalar determinant of the 3x3 matrix.

Returns:


public Matrix3x3f Transposed()

Summary: Returns a transposed copy of the matrix with rows and columns swapped.

Returns:


public Matrix3x3f Inverse()

Summary: Calculates the multiplicative inverse of the matrix.

Returns:


public EulerAngle ToEulerAngle(EulerOrder order)

Summary: Decomposes this rotation matrix into Euler angles according to a specified rotation sequence.

Parameters:

Returns:


public Quaternion ToQuaternion()

Summary: Converts this orthonormal rotation matrix into an equivalent rotation quaternion.

Returns:


public Boolean Equals(Matrix3x3f other)

Summary: Determines whether the specified Matrix3x3f is equal to the current instance.

Parameters:

Returns:


public virtual Boolean Equals(Object? obj)

Summary: Determines whether the specified object is a Matrix3x3f and is equal to the current instance.

Parameters:

Returns:


public virtual Int32 GetHashCode()

Summary: Returns the hash code for this matrix.

Returns:


public virtual String ToString()

Summary: Returns a culture-invariant string representation of the matrix.

Returns:


public Void GetObjectData(SerializationInfo info, StreamingContext context)

Summary: Populates a SerializationInfo with the data needed to serialise the matrix.

Parameters: