mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
0026799: NCollection_Array2's RowLength and ColLength return wrong value.
Comments to methods RowLength() and ColLength() improved to avoid possible misinterpretation
This commit is contained in:
parent
b8c673b4e6
commit
9535c4be46
@ -140,10 +140,11 @@ public:
|
|||||||
Standard_Integer Length (void) const
|
Standard_Integer Length (void) const
|
||||||
{ return RowLength() * ColLength(); }
|
{ return RowLength() * ColLength(); }
|
||||||
|
|
||||||
//! RowLength
|
//! Returns length of the row, i.e. number of columns
|
||||||
Standard_Integer RowLength (void) const
|
Standard_Integer RowLength (void) const
|
||||||
{ return (myUpperCol-myLowerCol+1); }
|
{ return (myUpperCol-myLowerCol+1); }
|
||||||
//! ColLength
|
|
||||||
|
//! Returns length of the column, i.e. number of rows
|
||||||
Standard_Integer ColLength (void) const
|
Standard_Integer ColLength (void) const
|
||||||
{ return (myUpperRow-myLowerRow+1); }
|
{ return (myUpperRow-myLowerRow+1); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user