.NET SDK Documentation

    Show / Hide Table of Contents

    Struct Matrix

    Simplified matrix struct

    Implements
    IEquatable<Matrix>
    Inherited Members
    ValueType.ToString()
    Namespace: Anki.Vector.Types
    Assembly: Anki.Vector.dll
    Syntax
    public struct Matrix : IEquatable<Matrix>

    Constructors

    | Improve this Doc View Source

    Matrix(Int32, Int32)

    Initializes a new instance of the Matrix struct.

    public Matrix(int rows, int cols)
    Parameters
    Type Name Description
    Int32 rows

    The rows.

    Int32 cols

    The cols.

    Properties

    | Improve this Doc View Source

    Item[Int32, Int32]

    Gets the Single with the specified row.

    public float this[int row, int col] { get; }
    Parameters
    Type Name Description
    Int32 row

    The row.

    Int32 col

    The col.

    Property Type
    Single

    Methods

    | Improve this Doc View Source

    Equals(Matrix)

    Indicates whether the current object is equal to another object of the same type.

    public bool Equals(Matrix other)
    Parameters
    Type Name Description
    Matrix other

    An object to compare with this object.

    Returns
    Type Description
    Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this Doc View Source

    Equals(Object)

    Determines whether the specified Object, is equal to this instance.

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The Object to compare with this instance.

    Returns
    Type Description
    Boolean

    true if the specified Object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Returns a hash code for this instance.

    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    ValueType.GetHashCode()

    Operators

    | Improve this Doc View Source

    Equality(Matrix, Matrix)

    Implements the operator ==.

    public static bool operator ==(Matrix lhs, Matrix rhs)
    Parameters
    Type Name Description
    Matrix lhs

    The LHS.

    Matrix rhs

    The RHS.

    Returns
    Type Description
    Boolean

    The result of the operator.

    | Improve this Doc View Source

    Inequality(Matrix, Matrix)

    Implements the operator !=.

    public static bool operator !=(Matrix lhs, Matrix rhs)
    Parameters
    Type Name Description
    Matrix lhs

    The LHS.

    Matrix rhs

    The RHS.

    Returns
    Type Description
    Boolean

    The result of the operator.

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2019 by Wayne Venables