TVec::Split Method

Overload List

#SignatureDescription
1TVec *Split(const DewArray<TVec *> &Dst);Splits the calling vector to an array of TVec objects.
2void Split(const DewArray<TVec *> &Dst, const DewArray<int> &DstSize);Copy the contents of the calling TVec object to the TVec objects in Dst array.
3void Split(TVec *Vec1, int Offset, TVec *Vec2);Copy the contents of the calling TVec object to Vec1 and Vec2 objects.

Overload 1: TVec *Split(const DewArray<TVec *> &Dst);

Splits the calling vector to an array of TVec objects.

#NameTypeDescription
1Dstconst DewArray<TVec *> &
Remarks:

Copy the contents of the calling TVec object to the TVec objects in Dst array. The TVec::Length and TVec::Complex properties of vectors in Dst array must be set explicitly. An exception is raised, if TVec::Complex properties of TVec objects do not match or the sum of TVec lengths exceeds the TVec::Length of the calling vector.

See Also: TVec::Concat, TVec::Copy, TVec::Resize
Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: void Split(const DewArray<TVec *> &Dst, const DewArray<int> &DstSize);

Copy the contents of the calling TVec object to the TVec objects in Dst array.

#NameTypeDescription
1Dstconst DewArray<TVec *> &
2DstSizeconst DewArray<int> &
Remarks:

The Length of objects in Dst array is defined in the DstSize array. The TVec::Length and TVec::Complex properties of vectors in Dst array are set implicitly. An exception is raised if the sum of DstSize lengths exceeds the TVec::Length of the calling vector.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 3: void Split(TVec *Vec1, int Offset, TVec *Vec2);

Copy the contents of the calling TVec object to Vec1 and Vec2 objects.

#NameTypeDescription
1Vec1TVec *
2Offsetint
3Vec2TVec *
Remarks:

The TVec::Length and TVec::Complex properties of are set implicitly. An exception is raised, if Offset parameter exceeds the length of the calling vector. The TVec::Length property of Vec1 object is set to Offset and the Length of Vec2 is set to the rest.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler