Math387.Swap / Swapf Method

Overload List

#SignatureDescription
1void Swap(ref TCplx X, ref TCplx Y)Exchange two numbers.
2void Swap(ref TSCplx X, ref TSCplx Y)
3void Swap(ref Byte X, ref Byte Y)
4void Swap(ref Double X, ref Double Y)Exchange two numbers.
5void Swap(ref Int32 X, ref Int32 Y)Exchange two numbers.
6void Swapf(ref Single X, ref Single Y)Exchange two numbers.

Overload 1: void Swap(ref TCplx X, ref TCplx Y)

Exchange two numbers.

#NameTypeDescription
1XTCplx (ref)output
2YTCplx (ref)output

Result: stored in self (calling object)

Remarks:

Exchanges two complex numbers X swaps Y.

Overload 2: void Swap(ref TSCplx X, ref TSCplx Y)

#NameTypeDescription
1XTSCplx (ref)
2YTSCplx (ref)

Result: stored in self (calling object)

Overload 3: void Swap(ref Byte X, ref Byte Y)

#NameTypeDescription
1XByte (ref)
2YByte (ref)

Result: stored in self (calling object)

Overload 4: void Swap(ref Double X, ref Double Y)

Exchange two numbers.

#NameTypeDescription
1XDouble (ref)output
2YDouble (ref)output

Result: stored in self (calling object)

Remarks:

Exchanges two real numbers X swaps Y.

Overload 5: void Swap(ref Int32 X, ref Int32 Y)

Exchange two numbers.

#NameTypeDescription
1XInt32 (ref)output
2YInt32 (ref)output

Result: stored in self (calling object)

Remarks:

Exchanges two integer numbers X swaps Y.

Overload 6: void Swapf(ref Single X, ref Single Y)

Exchange two numbers.

#NameTypeDescription
1XSingle (ref)
2YSingle (ref)

Result: stored in self (calling object)

Remarks:

Exchanges two real numbers X swaps Y.