Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *Round() const; | Elements rounded to the nearest whole number. |
| 2 | TMtxVec *Round(int Index, int Len) const; | Round calling object elements [Index]..[Index+Len-1] in-place. |
| 3 | TMtxVec *Round(TMtxVec *Src) const; | Round all Src object elements and store the results in calling object elements. |
| 4 | void Round(DewArray<int> &Dst) const; | Rounds the calling object elements to 4 byte integers and stores the result in the Dst array. |
| 5 | TMtxVec *Round(TMtxVec *Src, int SrcIndex, int Index, int Len) const; | Round Src object elements [SrcIndex]..[SrcIndex+Len-1]. |
Overload 1: TMtxVec *Round() const;
Elements rounded to the nearest whole number.
Rounds all calling object elements to the nearest whole number. The result can be stored to an array of integers or as floating point number.
Overload 2: TMtxVec *Round(int Index, int Len) const;
Round calling object elements [Index]..[Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
An exception is raised if array borders are overrun/underrun.
Overload 3: TMtxVec *Round(TMtxVec *Src) const;
Round all Src object elements and store the results in calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * |
Size and Matrix::Complex property of calling object are adjusted automatically.
Overload 4: void Round(DewArray<int> &Dst) const;
Rounds the calling object elements to 4 byte integers and stores the result in the Dst array.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | DewArray<int> & |
The size of the Dst array is set automatically. If the complex property is True then the length of the array will be equal to Self.Length*2.
Overload 5: TMtxVec *Round(TMtxVec *Src, int SrcIndex, int Index, int Len) const;
Round Src object elements [SrcIndex]..[SrcIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Store the results to calling object elements [Index]..[Index+Len-1]. Size and Matrix::Complex property of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun.