Class BitMatrix2D
Provides an efficient access to a square 2D bit matrix accessible as boolean values
Implements
System.Collections.Generic.IEnumerable<System.Boolean>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Collections
Assembly: Azos.dll
Syntax
public class BitMatrix2D : Matrix2DBase<bool>, IEnumerable<bool>, IEnumerable, IEquatable<MatrixBase<bool>>
Constructors
BitMatrix2D(Int32)
Declaration
public BitMatrix2D(int dimension)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | dimension |
BitMatrix2D(Int32, Int32)
Declaration
public BitMatrix2D(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | |
System.Int32 | height |
Properties
Item[Int32, Int32]
Provides access to bit values by X,Y matric coordinates
Declaration
public override bool this[int x, int y] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y |
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Azos.Collections.Matrix2DBase<System.Boolean>.Item[System.Int32, System.Int32]
Methods
Equals(Object)
Declaration
public override bool Equals(object otherObj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | otherObj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Azos.Collections.MatrixBase<System.Boolean>.Equals(System.Object)
FillSubArea(Int32, Int32, Int32, Int32, Boolean)
Fills homogeneous sub-area of this square with the specified value
Declaration
public void FillSubArea(int left, int top, int width, int height, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | |
System.Int32 | top | |
System.Int32 | width | |
System.Int32 | height | |
System.Boolean | value |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Azos.Collections.MatrixBase<System.Boolean>.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Azos.Collections.Matrix2DBase<System.Boolean>.ToString()
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IEquatable<T>