Complex

References
public struct Complex
Complex number type in Grasshopper. Do not confuse with GH_Complex which is the IGH_Goo implementation of ComplexNumber.

Constructors

Complex

#
public Complex(double real_component, double imaginary_component)
real_component (double)
imaginary_component (double)

Complex

#
public Complex(double real_component)
real_component (double)

Properties

Argument

#
public double Argument { get; set; }
Gets or sets the complex argument.

ComplexUnit

#
public static Complex ComplexUnit { get; }

Imaginary

#
public double Imaginary { get; set; }
Gets or sets the imaginary component of the Complex number.

Infinity

#
public static Complex Infinity { get; }

IsReal

#
public bool IsReal { get; }
Gets whether this complex number only has a real component.

IsRealNonNegative

#
public bool IsRealNonNegative { get; }
Gets whether this complex number only has a positive real component.

IsValid

#
public bool IsValid { get; }
Gets the validity of this number.

IsZero

#
public bool IsZero { get; }
Gets whether or not this complex number equals {0.0; 0.0}

NaN

#
public static Complex NaN { get; }

NegativeInfinity

#
public static Complex NegativeInfinity { get; }

Real

#
public double Real { get; set; }
Gets or sets the real component of the Complex number.

Zero

#
public static Complex Zero { get; }

Methods

ACos

#
public Complex ACos()

ASin

#
public Complex ASin()

ATan

#
public Complex ATan()

Cos

#
public Complex Cos()

Cosecant

#
public Complex Cosecant()

CoTan

#
public Complex CoTan()

Exponential

#
public Complex Exponential()

GetHashCode

#
public override int GetHashCode()

Log

#
public Complex Log()

Log10

#
public Complex Log10()

Modulus

#
public double Modulus()

ModulusSquared

#
public double ModulusSquared()

Power

#
public Complex Power(Complex exponent)
exponent (Complex)

Root

#
public Complex Root(Complex rootexponent)
rootexponent (Complex)

Secant

#
public Complex Secant()

Sin

#
public Complex Sin()

Square

#
public Complex Square()

SquareRoot

#
public Complex SquareRoot()

Tan

#
public Complex Tan()

Operators