TVec.Disown Method

Overload List

#SignatureDescription
1void DisownDisowns a calling vector values pointer by setting Values, CValues to nil and Dew.Math.TMtxVecBase.Length to 0.
2void Disown(ref Single[] aArray, ref Int32 aIndex, ref Int32 ALength, ref Boolean aIsComplex)Disowns a values pointer.

Overload 1: void Disown

Disowns a calling vector values pointer by setting Values, CValues to nil and Dew.Math.TMtxVecBase.Length to 0.

Result: stored in self (calling object)

Overload 2: void Disown(ref Single[] aArray, ref Int32 aIndex, ref Int32 ALength, ref Boolean aIsComplex)

Disowns a values pointer.

#NameTypeDescription
1aArraySingle[] (ref)
2aIndexInt32 (ref)output
3ALengthInt32 (ref)output
4aIsComplexBoolean (ref)

Result: stored in self (calling object)

Remarks:

Disowns a values pointer. The Disown method is the opposite of the Dew.Math.TVec.Adopt method. It will set the AArrays to Pointer(Values), ALength to vector's Dew.Math.TMtxVecBase.Length and IsComplex to Dew.Math.TMtxVec.Complex property. Use the Disown method to "disconnect" AArray from the TVec.Values. Disown sets Values and CValues array pointers to nil and Length property to zero, but without freeing the allocated memory. The allocated memory can be disowned only, if it was adopted with a call to the Dew.Math.TVec.Adopt method.

See Also: TVec.Adopt