Complex Class

Summary: The complex number structure.

Module: aspose.imaging.imagefilters.complexutils

Full Name: aspose.imaging.imagefilters.complexutils.Complex

Constructors

NameDescription
Complex()Initializes a new instance of the Complex class
Complex(c)Initializes a new instance of the Complex struct.
Complex(real, imaginary)Initializes a new instance of the Complex struct.

Properties

NameTypeAccessDescription
I [static]ComplexrI complex having Complex.im equal to 1.
ONE [static]ComplexrOne complex having Complex.re and Complex.im equal to 1.
SIZE_OF_COMPLEX [static]intrThe size of complex.
SIZE_OF_DOUBLE [static]intrThe size of float.
ZERO [static]ComplexrZero complex.
imdoubler/wGets or sets the imaginary part.
magnitudedoublerGets the magnitude.
phasedoublerGets the phase.
redoubler/wGets or sets the real part.
squared_magnitudedoublerGets the squared magnitude.

Methods

NameDescription
add(a, b)Adds a and b.
add(a, b, result)Adds a and b.
add(a, s)Adds a and s.
add(a, s, result)Adds a and s.
approx_equal(a, b)Checks approximate equality.
approx_equal(a, b, tolerance)Checks approximate equality.
clone()Clones this instance.
cos(a)Gets Cos of a.
divide(a, b)Divides a by b.
divide(a, b, result)Divides a by b.
divide(a, s)Divides a by s.
divide(a, s, result)Divides a by s.
divide(s, a)Divides a by s.
divide(s, a, result)Divides s by a.
exp(a)Raises e by a.
log(a)Gets log of a.
multiply(a, b)Multiplies a by b.
multiply(a, b, result)Multiplies a by b.
multiply(a, s)Multiplies a by s.
multiply(a, s, result)Multiplies a by s.
negate(a)Negates a.
parse(s)Parses the specified s into a Complex.
sin(a)Gets Sin of a.
sqrt(a)Gets square root of a.
subtract(a, b)Subtracts b from a.
subtract(a, b, result)Subtracts b from a.
subtract(a, s)Subtracts s from a.
subtract(a, s, result)Subtracts s from a.
subtract(s, a)Subtracts s from a.
subtract(s, a, result)Subtracts a from s.
tan(a)Gets Tan of a.
try_parse(s, result)Tries to parse the specified s into a Complex.

Constructor: Complex()

 Complex() 

Initializes a new instance of the Complex class

Constructor: Complex(c)

 Complex(c) 

Initializes a new instance of the Complex struct.

Parameters:

ParameterTypeDescription
cComplexThe complex number.

Constructor: Complex(real, imaginary)

 Complex(real, imaginary) 

Initializes a new instance of the Complex struct.

Parameters:

ParameterTypeDescription
realdoubleThe real part.
imaginarydoubleThe imaginary part.

Method: add(a, b) [static]

 add(a, b) 

Adds a and b.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.

Returns

TypeDescription
ComplexThe sum complex.

Method: add(a, b, result) [static]

 add(a, b, result) 

Adds a and b.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.
resultComplex[]The result.

Method: add(a, s) [static]

 add(a, s) 

Adds a and s.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
sdoubleThe s value.

Returns

TypeDescription
ComplexThe complex with its Re increased by s.

Method: add(a, s, result) [static]

 add(a, s, result) 

Adds a and s.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
sdoubleThe s value.
resultComplex[]The result.

Method: approx_equal(a, b) [static]

 approx_equal(a, b) 

Checks approximate equality.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.

Returns

TypeDescription
boolThe approximate equality result.

Method: approx_equal(a, b, tolerance) [static]

 approx_equal(a, b, tolerance) 

Checks approximate equality.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.
tolerancedoubleThe tolerance.

Returns

TypeDescription
boolThe approximate equality result.

Method: clone()

 clone() 

Clones this instance.

Returns

TypeDescription
ComplexA clone of this complex.

Method: cos(a) [static]

 cos(a) 

Gets Cos of a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.

Returns

TypeDescription
ComplexCos of a.

Method: divide(a, b) [static]

 divide(a, b) 

Divides a by b.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.

Returns

TypeDescription
ComplexThe result of division.

Method: divide(a, b, result) [static]

 divide(a, b, result) 

Divides a by b.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.
resultComplex[]The result.

Method: divide(a, s) [static]

 divide(a, s) 

Divides a by s.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
sdoubleThe s value.

Returns

TypeDescription
ComplexThe result of division.

Method: divide(a, s, result) [static]

 divide(a, s, result) 

Divides a by s.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
sdoubleThe s value.
resultComplex[]The result.

Method: divide(s, a) [static]

 divide(s, a) 

Divides a by s.

Parameters:

ParameterTypeDescription
sdoubleThe s value.
aComplexThe a complex.

Returns

TypeDescription
ComplexThe result of division.

Method: divide(s, a, result) [static]

 divide(s, a, result) 

Divides s by a.

Parameters:

ParameterTypeDescription
sdoubleThe s value.
aComplexThe a complex.
resultComplex[]The result.

Method: exp(a) [static]

 exp(a) 

Raises e by a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.

Returns

TypeDescription
Complexe raised by a.

Method: log(a) [static]

 log(a) 

Gets log of a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.

Returns

TypeDescription
ComplexThe log of a.

Method: multiply(a, b) [static]

 multiply(a, b) 

Multiplies a by b.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.

Returns

TypeDescription
ComplexThe result of multiplication.

Method: multiply(a, b, result) [static]

 multiply(a, b, result) 

Multiplies a by b.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.
resultComplex[]The result.

Method: multiply(a, s) [static]

 multiply(a, s) 

Multiplies a by s.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
sdoubleThe s value.

Returns

TypeDescription
ComplexThe result of multiplication.

Method: multiply(a, s, result) [static]

 multiply(a, s, result) 

Multiplies a by s.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
sdoubleThe s value.
resultComplex[]The result.

Method: negate(a) [static]

 negate(a) 

Negates a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.

Returns

TypeDescription
ComplexThe result of negation.

Method: parse(s) [static]

 parse(s) 

Parses the specified s into a Complex.

Parameters:

ParameterTypeDescription
sstringThe s value.

Returns

TypeDescription
ComplexThe complex number.

Method: sin(a) [static]

 sin(a) 

Gets Sin of a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.

Returns

TypeDescription
ComplexSin of a.

Method: sqrt(a) [static]

 sqrt(a) 

Gets square root of a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.

Returns

TypeDescription
ComplexThe square root.

Method: subtract(a, b) [static]

 subtract(a, b) 

Subtracts b from a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.

Returns

TypeDescription
ComplexThe result of subtraction.

Method: subtract(a, b, result) [static]

 subtract(a, b, result) 

Subtracts b from a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
bComplexThe b complex.
resultComplex[]The result.

Method: subtract(a, s) [static]

 subtract(a, s) 

Subtracts s from a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
sdoubleThe s value.

Returns

TypeDescription
ComplexThe result of subtraction.

Method: subtract(a, s, result) [static]

 subtract(a, s, result) 

Subtracts s from a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.
sdoubleThe s value.
resultComplex[]The result.

Method: subtract(s, a) [static]

 subtract(s, a) 

Subtracts s from a.

Parameters:

ParameterTypeDescription
sdoubleThe s value.
aComplexThe a complex.

Returns

TypeDescription
ComplexThe result of subtraction.

Method: subtract(s, a, result) [static]

 subtract(s, a, result) 

Subtracts a from s.

Parameters:

ParameterTypeDescription
sdoubleThe s value.
aComplexThe a complex.
resultComplex[]The result.

Method: tan(a) [static]

 tan(a) 

Gets Tan of a.

Parameters:

ParameterTypeDescription
aComplexThe a complex.

Returns

TypeDescription
ComplexTan of a.

Method: try_parse(s, result) [static]

 try_parse(s, result) 

Tries to parse the specified s into a Complex.

Parameters:

ParameterTypeDescription
sstringThe s value.
resultComplex[]The result.

Returns

TypeDescription
boolTrue, if the complex number is parsed.