Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *Round(); | Elements rounded to the nearest whole number. |
| 2 | TMtxVec *Round(int Index, int Len); | Round calling object elements [Index]..[Index+Len-1] in-place. |
| 3 | TMtxVec *Round(TMtxVec *Src); | Round all Src object elements. |
| 4 | TMtxVec *Round(DewArray<int> &Dst); | Rounds the calling object elements to 4 byte integers. |
| 5 | TMtxVec *Round(TMtxVec *Src, int SrcIndex, int Index, int Len); | Round Src object elements [SrcIndex]..[SrcIndex+Len-1]. |
Overload 1: TMtxVec *Round();
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);
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);
Round all Src object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * |
Store the results in calling object elements. Size and TVec::Complex property of calling object are adjusted automatically.
Overload 4: TMtxVec *Round(DewArray<int> &Dst);
Rounds the calling object elements to 4 byte integers.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | DewArray<int> & |
Stores the result in the Dst array. 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);
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 TVec::Complex property of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun.