Complex Class
Summary: The complex number structure.
Module: aspose.imaging.imagefilters.complexutils
Full Name: aspose.imaging.imagefilters.complexutils.Complex
Constructors
Name | Description |
---|---|
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
Name | Type | Access | Description |
---|---|---|---|
I [static] | Complex | r | I complex having Complex.im equal to 1. |
ONE [static] | Complex | r | One complex having Complex.re and Complex.im equal to 1. |
SIZE_OF_COMPLEX [static] | int | r | The size of complex. |
SIZE_OF_DOUBLE [static] | int | r | The size of float. |
ZERO [static] | Complex | r | Zero complex. |
im | double | r/w | Gets or sets the imaginary part. |
magnitude | double | r | Gets the magnitude. |
phase | double | r | Gets the phase. |
re | double | r/w | Gets or sets the real part. |
squared_magnitude | double | r | Gets the squared magnitude. |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
c | Complex | The complex number. |
Constructor: Complex(real, imaginary)
Complex(real, imaginary)
Initializes a new instance of the Complex struct.
Parameters:
Parameter | Type | Description |
---|---|---|
real | double | The real part. |
imaginary | double | The imaginary part. |
Method: add(a, b) [static]
add(a, b)
Adds a and b.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
Returns
Type | Description |
---|---|
Complex | The sum complex. |
Method: add(a, b, result) [static]
add(a, b, result)
Adds a and b.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
result | Complex[] | The result. |
Method: add(a, s) [static]
add(a, s)
Adds a and s.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
s | double | The s value. |
Returns
Type | Description |
---|---|
Complex | The complex with its Re increased by s. |
Method: add(a, s, result) [static]
add(a, s, result)
Adds a and s.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
s | double | The s value. |
result | Complex[] | The result. |
Method: approx_equal(a, b) [static]
approx_equal(a, b)
Checks approximate equality.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
Returns
Type | Description |
---|---|
bool | The approximate equality result. |
Method: approx_equal(a, b, tolerance) [static]
approx_equal(a, b, tolerance)
Checks approximate equality.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
tolerance | double | The tolerance. |
Returns
Type | Description |
---|---|
bool | The approximate equality result. |
Method: clone()
clone()
Clones this instance.
Returns
Type | Description |
---|---|
Complex | A clone of this complex. |
Method: cos(a) [static]
cos(a)
Gets Cos of a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | Cos of a. |
Method: divide(a, b) [static]
divide(a, b)
Divides a by b.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
Returns
Type | Description |
---|---|
Complex | The result of division. |
Method: divide(a, b, result) [static]
divide(a, b, result)
Divides a by b.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
result | Complex[] | The result. |
Method: divide(a, s) [static]
divide(a, s)
Divides a by s.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
s | double | The s value. |
Returns
Type | Description |
---|---|
Complex | The result of division. |
Method: divide(a, s, result) [static]
divide(a, s, result)
Divides a by s.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
s | double | The s value. |
result | Complex[] | The result. |
Method: divide(s, a) [static]
divide(s, a)
Divides a by s.
Parameters:
Parameter | Type | Description |
---|---|---|
s | double | The s value. |
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | The result of division. |
Method: divide(s, a, result) [static]
divide(s, a, result)
Divides s by a.
Parameters:
Parameter | Type | Description |
---|---|---|
s | double | The s value. |
a | Complex | The a complex. |
result | Complex[] | The result. |
Method: exp(a) [static]
exp(a)
Raises e by a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | e raised by a. |
Method: log(a) [static]
log(a)
Gets log of a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | The log of a. |
Method: multiply(a, b) [static]
multiply(a, b)
Multiplies a by b.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
Returns
Type | Description |
---|---|
Complex | The result of multiplication. |
Method: multiply(a, b, result) [static]
multiply(a, b, result)
Multiplies a by b.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
result | Complex[] | The result. |
Method: multiply(a, s) [static]
multiply(a, s)
Multiplies a by s.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
s | double | The s value. |
Returns
Type | Description |
---|---|
Complex | The result of multiplication. |
Method: multiply(a, s, result) [static]
multiply(a, s, result)
Multiplies a by s.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
s | double | The s value. |
result | Complex[] | The result. |
Method: negate(a) [static]
negate(a)
Negates a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | The result of negation. |
Method: parse(s) [static]
parse(s)
Parses the specified s into a Complex.
Parameters:
Parameter | Type | Description |
---|---|---|
s | string | The s value. |
Returns
Type | Description |
---|---|
Complex | The complex number. |
Method: sin(a) [static]
sin(a)
Gets Sin of a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | Sin of a. |
Method: sqrt(a) [static]
sqrt(a)
Gets square root of a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | The square root. |
Method: subtract(a, b) [static]
subtract(a, b)
Subtracts b from a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
Returns
Type | Description |
---|---|
Complex | The result of subtraction. |
Method: subtract(a, b, result) [static]
subtract(a, b, result)
Subtracts b from a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
b | Complex | The b complex. |
result | Complex[] | The result. |
Method: subtract(a, s) [static]
subtract(a, s)
Subtracts s from a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
s | double | The s value. |
Returns
Type | Description |
---|---|
Complex | The result of subtraction. |
Method: subtract(a, s, result) [static]
subtract(a, s, result)
Subtracts s from a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
s | double | The s value. |
result | Complex[] | The result. |
Method: subtract(s, a) [static]
subtract(s, a)
Subtracts s from a.
Parameters:
Parameter | Type | Description |
---|---|---|
s | double | The s value. |
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | The result of subtraction. |
Method: subtract(s, a, result) [static]
subtract(s, a, result)
Subtracts a from s.
Parameters:
Parameter | Type | Description |
---|---|---|
s | double | The s value. |
a | Complex | The a complex. |
result | Complex[] | The result. |
Method: tan(a) [static]
tan(a)
Gets Tan of a.
Parameters:
Parameter | Type | Description |
---|---|---|
a | Complex | The a complex. |
Returns
Type | Description |
---|---|
Complex | Tan of a. |
Method: try_parse(s, result) [static]
try_parse(s, result)
Tries to parse the specified s into a Complex.
Parameters:
Parameter | Type | Description |
---|---|---|
s | string | The s value. |
result | Complex[] | The result. |
Returns
Type | Description |
---|---|
bool | True, if the complex number is parsed. |