Imaginary<T> Explicit  Conversion Operators

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

Explicit(Complex<T> to Imaginary<T>) Casts a complex number to an imaginary number. The real part is set to zero.
Explicit(Imaginary<T> to T) Casts an imaginary number to a real number. The imaginary part must be zero.

Explicit Conversion (Complex<T> to Imaginary<T>)

Casts a complex number to an imaginary number. The real part is set to zero.
C#
public static explicit operator Imaginary<T> (
	Complex<T> z
)

Parameters

z  Complex<T>
The complex number to convert.

Return Value

Imaginary<T>
An imaginary number that is equal to the imaginary part of z.

Remarks

The real part of z is discarded.

Explicit Conversion (Imaginary<T> to T)

Casts an imaginary number to a real number. The imaginary part must be zero.
C#
public static explicit operator T (
	Imaginary<T> z
)

Parameters

z  Imaginary<T>
The imaginary number to convert.

Return Value

T
Always returns zero.

Remarks

The imaginary part of z is discarded. The result is always zero.

See Also