TMtx::Round Method

Overload List

#SignatureDescription
1TMtxVec *Round();Elements rounded to the nearest whole number.
2TMtxVec *Round(int Index, int Len);Round calling object elements [Index]..[Index+Len-1] in-place.
3TMtxVec *Round(TMtxVec *Src);Round all Src object elements.
4TMtxVec *Round(DewArray<int> &Dst);Rounds the calling object elements to 4 byte integers.
5TMtxVec *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.

Remarks:

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.

See Also: TMtx::Trunc, TMtx::Frac
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *Round(int Index, int Len);

Round calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1Indexint
2Lenint
Remarks:

An exception is raised if array borders are overrun/underrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 3: TMtxVec *Round(TMtxVec *Src);

Round all Src object elements.

#NameTypeDescription
1SrcTMtxVec *
Remarks:

Store the results in calling object elements. Size and TMtx::Complex property of calling object are adjusted automatically.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 4: TMtxVec *Round(DewArray<int> &Dst);

Rounds the calling object elements to 4 byte integers.

#NameTypeDescription
1DstDewArray<int> &
Remarks:

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.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 5: TMtxVec *Round(TMtxVec *Src, int SrcIndex, int Index, int Len);

Round Src object elements [SrcIndex]..[SrcIndex+Len-1].

#NameTypeDescription
1SrcTMtxVec *
2SrcIndexint
3Indexint
4Lenint
Remarks:

Store the results to calling object elements [Index]..[Index+Len-1]. Size and TMtx::Complex property of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler