## Complex structure

The complex number structure.

```csharp
public struct Complex : IEquatable<Complex>
```

## Constructors

| Name | Description |
| --- | --- |
| [Complex](complex/#constructor)(Complex) | Initializes a new instance of the `Complex` struct. |
| [Complex](complex/#constructor_1)(double, double) | Initializes a new instance of the `Complex` struct. |

## Properties

| Name | Description |
| --- | --- |
| [Im](../../aspose.imaging.imagefilters.complexutils/complex/im/) { get; set; } | Gets or sets the imaginary part. |
| [Magnitude](../../aspose.imaging.imagefilters.complexutils/complex/magnitude/) { get; } | Gets the magnitude. |
| [Phase](../../aspose.imaging.imagefilters.complexutils/complex/phase/) { get; } | Gets the phase. |
| [Re](../../aspose.imaging.imagefilters.complexutils/complex/re/) { get; set; } | Gets or sets the real part. |
| [SquaredMagnitude](../../aspose.imaging.imagefilters.complexutils/complex/squaredmagnitude/) { get; } | Gets the squared magnitude. |

## Methods

| Name | Description |
| --- | --- |
| static [Add](../../aspose.imaging.imagefilters.complexutils/complex/add/#add)(Complex, Complex) | Adds *a* and *b*. |
| static [Add](../../aspose.imaging.imagefilters.complexutils/complex/add/#add_1)(Complex, double) | Adds *a* and *s*. |
| static [Cos](../../aspose.imaging.imagefilters.complexutils/complex/cos/)(Complex) | Gets Cos of *a*. |
| static [Divide](../../aspose.imaging.imagefilters.complexutils/complex/divide/#divide)(Complex, Complex) | Divides *a* by *b*. |
| static [Divide](../../aspose.imaging.imagefilters.complexutils/complex/divide/#divide_1)(Complex, double) | Divides *a* by *s*. |
| static [Divide](../../aspose.imaging.imagefilters.complexutils/complex/divide/#divide_2)(double, Complex) | Divides *a* by *s*. |
| static [Exp](../../aspose.imaging.imagefilters.complexutils/complex/exp/)(Complex) | Raises e by *a*. |
| static [Log](../../aspose.imaging.imagefilters.complexutils/complex/log/)(Complex) | Gets log of *a*. |
| static [Multiply](../../aspose.imaging.imagefilters.complexutils/complex/multiply/#multiply)(Complex, Complex) | Multiplies *a* by *b*. |
| static [Multiply](../../aspose.imaging.imagefilters.complexutils/complex/multiply/#multiply_1)(Complex, double) | Multiplies *a* by *s*. |
| static [Negate](../../aspose.imaging.imagefilters.complexutils/complex/negate/)(Complex) | Negates *a*. |
| static [Parse](../../aspose.imaging.imagefilters.complexutils/complex/parse/)(string) | Parses the specified *s* into a `Complex`. |
| static [Sin](../../aspose.imaging.imagefilters.complexutils/complex/sin/)(Complex) | Gets Sin of *a*. |
| static [Sqrt](../../aspose.imaging.imagefilters.complexutils/complex/sqrt/)(Complex) | Gets square root of *a*. |
| static [Subtract](../../aspose.imaging.imagefilters.complexutils/complex/subtract/#subtract)(Complex, Complex) | Subtracts *b* from *a*. |
| static [Subtract](../../aspose.imaging.imagefilters.complexutils/complex/subtract/#subtract_1)(Complex, double) | Subtracts *s* from *a*. |
| static [Subtract](../../aspose.imaging.imagefilters.complexutils/complex/subtract/#subtract_2)(double, Complex) | Subtracts *s* from *a*. |
| static [Tan](../../aspose.imaging.imagefilters.complexutils/complex/tan/)(Complex) | Gets Tan of *a*. |
| [Clone](../../aspose.imaging.imagefilters.complexutils/complex/clone/)() | Clones this instance. |
| [Equals](../../aspose.imaging.imagefilters.complexutils/complex/equals/#equals)(Complex) | Determines whether the specified Object, is equal to this instance. |
| override [Equals](../../aspose.imaging.imagefilters.complexutils/complex/equals/#equals_1)(object) | Determines whether the specified Object, is equal to this instance. |
| override [GetHashCode](../../aspose.imaging.imagefilters.complexutils/complex/gethashcode/)() | Returns a hash code for this instance. |
| override [ToString](../../aspose.imaging.imagefilters.complexutils/complex/tostring/)() | Returns a String that represents this instance. |
| static [Add](../../aspose.imaging.imagefilters.complexutils/complex/add/#add_2)(Complex, Complex, ref Complex) | Adds *a* and *b*. |
| static [Add](../../aspose.imaging.imagefilters.complexutils/complex/add/#add_3)(Complex, double, ref Complex) | Adds *a* and *s*. |
| static [ApproxEqual](../../aspose.imaging.imagefilters.complexutils/complex/approxequal/#approxequal)(Complex, Complex) | Checks approximate equality. |
| static [ApproxEqual](../../aspose.imaging.imagefilters.complexutils/complex/approxequal/#approxequal_1)(Complex, Complex, double) | Checks approximate equality. |
| static [Divide](../../aspose.imaging.imagefilters.complexutils/complex/divide/#divide_3)(Complex, Complex, ref Complex) | Divides *a* by *b*. |
| static [Divide](../../aspose.imaging.imagefilters.complexutils/complex/divide/#divide_4)(Complex, double, ref Complex) | Divides *a* by *s*. |
| static [Divide](../../aspose.imaging.imagefilters.complexutils/complex/divide/#divide_5)(double, Complex, ref Complex) | Divides *s* by *a*. |
| static [Multiply](../../aspose.imaging.imagefilters.complexutils/complex/multiply/#multiply_2)(Complex, Complex, ref Complex) | Multiplies *a* by *b*. |
| static [Multiply](../../aspose.imaging.imagefilters.complexutils/complex/multiply/#multiply_3)(Complex, double, ref Complex) | Multiplies *a* by *s*. |
| static [Subtract](../../aspose.imaging.imagefilters.complexutils/complex/subtract/#subtract_3)(Complex, Complex, ref Complex) | Subtracts *b* from *a*. |
| static [Subtract](../../aspose.imaging.imagefilters.complexutils/complex/subtract/#subtract_4)(Complex, double, ref Complex) | Subtracts *s* from *a*. |
| static [Subtract](../../aspose.imaging.imagefilters.complexutils/complex/subtract/#subtract_5)(double, Complex, ref Complex) | Subtracts *a* from *s*. |
| static [TryParse](../../aspose.imaging.imagefilters.complexutils/complex/tryparse/)(string, out Complex) | Tries to parse the specified *s* into a `Complex`. |
| [operator +](../../aspose.imaging.imagefilters.complexutils/complex/op_addition/#op_addition) | Implements the operator +. (3 operators) |
| [operator /](../../aspose.imaging.imagefilters.complexutils/complex/op_division/#op_division) | Implements the operator /. (3 operators) |
| [operator ==](../../aspose.imaging.imagefilters.complexutils/complex/op_equality/) | Implements the operator ==. |
| [explicit operator](../../aspose.imaging.imagefilters.complexutils/complex/op_explicit/#op_explicit) | Performs an explicit conversion from Double to `Complex`. (2 operators) |
| [operator !=](../../aspose.imaging.imagefilters.complexutils/complex/op_inequality/) | Implements the operator !=. |
| [operator *](../../aspose.imaging.imagefilters.complexutils/complex/op_multiply/#op_multiply) | Implements the operator *. (3 operators) |
| [operator -](../../aspose.imaging.imagefilters.complexutils/complex/op_subtraction/) | Implements the operator -. (4 operators) |

## Fields

| Name | Description |
| --- | --- |
| static readonly [I](../../aspose.imaging.imagefilters.complexutils/complex/i/) | I complex having [`Im`](./im/) equal to 1. |
| static readonly [One](../../aspose.imaging.imagefilters.complexutils/complex/one/) | One complex having [`Re`](./re/) and [`Im`](./im/) equal to 1. |
| static readonly [Zero](../../aspose.imaging.imagefilters.complexutils/complex/zero/) | Zero complex. |
| static readonly [SizeOfComplex](../../aspose.imaging.imagefilters.complexutils/complex/sizeofcomplex/) | The size of complex. |
| static readonly [SizeOfDouble](../../aspose.imaging.imagefilters.complexutils/complex/sizeofdouble/) | The size of Double. |

### See Also

* namespace [Aspose.Imaging.ImageFilters.ComplexUtils](../../aspose.imaging.imagefilters.complexutils/)
* assembly [Aspose.Imaging](../../)


