Struct Matrix
Simplified matrix struct
Implements
Inherited Members
Namespace: Anki.Vector.Types
Assembly: Anki.Vector.dll
Syntax
public struct Matrix : IEquatable<Matrix>
Constructors
| Improve this Doc View SourceMatrix(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 SourceItem[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 SourceEquals(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 |
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 |
|
Overrides
| Improve this Doc View SourceGetHashCode()
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
Operators
| Improve this Doc View SourceEquality(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. |
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. |