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(
real_component,
imaginary_component
)

Complex

#
public Complex(
real_component
)

Properties

Argument

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

ComplexUnit

#
public static Complex ComplexUnit { get; }

Imaginary

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

Infinity

#
public static Complex Infinity { get; }

IsReal

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

IsRealNonNegative

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

IsValid

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

IsZero

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

NaN

#
public static Complex NaN { get; }

NegativeInfinity

#
public static Complex NegativeInfinity { get; }

Real

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

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(
exponent
)

Root

#
public Complex Root(
rootexponent
)

Secant

#
public Complex Secant()

Sin

#
public Complex Sin()

Square

#
public Complex Square()

SquareRoot

#
public Complex SquareRoot()

Tan

#
public Complex Tan()

Operators