We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8842299 commit 31ee4a9Copy full SHA for 31ee4a9
SharpMath/Geometry/MatrixEnumerator.cs
@@ -26,7 +26,7 @@ public void Dispose()
26
public bool MoveNext()
27
{
28
_index++;
29
- return _index < _matrix.ColumnCount + _matrix.RowCount;
+ return _index < _matrix.ColumnCount * _matrix.RowCount;
30
}
31
32
public void Reset()
@@ -36,4 +36,4 @@ public void Reset()
36
37
public double Current => _matrix[(uint) _index % _matrix.ColumnCount, (uint) _index / _matrix.RowCount];
38
39
-}
+}
0 commit comments