Complex 类
Summary: The complex number structure.
Module: aspose.imaging.imagefilters.complexutils
Full Name: aspose.imaging.imagefilters.complexutils.Complex
Constructors
| Name | 描述 |
|---|---|
| Complex() | 初始化 Complex 类的新实例 |
| Complex(c) | 初始化 Complex 结构的新实例。 |
| Complex(real, imaginary) | 初始化 Complex 结构的新实例。 |
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| I [static] | Complex | r | 我有一个复数,其 Complex.im 等于 1。 |
| ONE [static] | Complex | r | 一个复数,其 Complex.re 和 Complex.im 均等于 1。 |
| SIZE_OF_COMPLEX [static] | int | r | 复数的大小。 |
| SIZE_OF_DOUBLE [static] | int | r | float 的大小。 |
| ZERO [static] | Complex | r | 零复数。 |
| im | float | r/w | 获取或设置虚部。 |
| 幅度 | float | r | 获取幅度。 |
| 相位 | float | r | 获取相位。 |
| re | float | r/w | 获取或设置实部。 |
| 平方幅度 | float | r | 获取平方幅度。 |
Methods
| Name | 描述 |
|---|---|
| add(a, b) | 将 a 与 b 相加。 |
| add(a, b, result) | 将 a 与 b 相加。 |
| add(a, s) | 将 a 与 s 相加。 |
| add(a, s, result) | 将 a 与 s 相加。 |
| approx_equal(a, b) | 检查近似相等。 |
| approx_equal(a, b, tolerance) | 检查近似相等。 |
| clone() | 克隆此实例。 |
| cos(a) | 获取 a 的余弦。 |
| divide(a, b) | 将 a 除以 b。 |
| divide(a, b, result) | 将 a 除以 b。 |
| divide(a, s) | 将 a 除以 s。 |
| divide(a, s, result) | 将 a 除以 s。 |
| divide(s, a) | 将 a 除以 s。 |
| divide(s, a, result) | 将 s 除以 a。 |
| exp(a) | 将 e 提升 a。 |
| log(a) | 获取 a 的对数。 |
| multiply(a, b) | 将 a 乘以 b。 |
| multiply(a, b, result) | 将 a 乘以 b。 |
| multiply(a, s) | 将 a 乘以 s。 |
| multiply(a, s, result) | 将 a 乘以 s。 |
| negate(a) | 对 a 取负。 |
| parse(s) | 将指定的 s 解析为一个 Complex。 |
| sin(a) | 获取 a 的正弦。 |
| sqrt(a) | 获取 a 的平方根。 |
| subtract(a, b) | 从 a 中减去 b。 |
| subtract(a, b, result) | 从 a 中减去 b。 |
| subtract(a, s) | 从 a 中减去 s。 |
| subtract(a, s, result) | 从 a 中减去 s。 |
| subtract(s, a) | 从 a 中减去 s。 |
| subtract(s, a, result) | 从 s 中减去 a。 |
| tan(a) | 获取 a 的正切。 |
| try_parse(s, result) | 尝试将指定的 s 解析为一个 Complex。 |
Constructor: Complex()
Complex()
初始化 Complex 类的新实例
Constructor: Complex(c)
Complex(c)
初始化 Complex 结构的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| c | Complex | 复数。 |
Constructor: Complex(real, imaginary)
Complex(real, imaginary)
初始化 Complex 结构的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 实部 | float | 实部。 |
| 虚部 | float | 虚部。 |
Method: add(a, b) [static]
add(a, b)
将 a 与 b 相加。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 该 sum 复数。 |
Method: add(a, b, result) [static]
add(a, b, result)
将 a 与 b 相加。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
| result | Complex[] | 结果。 |
Method: add(a, s) [static]
add(a, s)
将 a 与 s 相加。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| s | float | s 值。 |
Returns
| Type | Description |
|---|---|
| Complex | 复数的实部增加了 s。 |
Method: add(a, s, result) [static]
add(a, s, result)
将 a 与 s 相加。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| s | float | s 值。 |
| result | Complex[] | 结果。 |
Method: approx_equal(a, b) [static]
approx_equal(a, b)
检查近似相等。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
Returns
| Type | Description |
|---|---|
| bool | 近似相等的结果。 |
Method: approx_equal(a, b, tolerance) [static]
approx_equal(a, b, tolerance)
检查近似相等。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
| 容差 | float | 容差。 |
Returns
| Type | Description |
|---|---|
| bool | 近似相等的结果。 |
Method: clone()
clone()
克隆此实例。
Returns
| Type | Description |
|---|---|
| Complex | 此复数的克隆。 |
Method: cos(a) [static]
cos(a)
获取 a 的余弦。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | Cos of a。 |
Method: divide(a, b) [static]
divide(a, b)
将 a 除以 b。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 除法的结果。 |
Method: divide(a, b, result) [static]
divide(a, b, result)
将 a 除以 b。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
| result | Complex[] | 结果。 |
Method: divide(a, s) [static]
divide(a, s)
将 a 除以 s。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| s | float | s 值。 |
Returns
| Type | Description |
|---|---|
| Complex | 除法的结果。 |
Method: divide(a, s, result) [static]
divide(a, s, result)
将 a 除以 s。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| s | float | s 值。 |
| result | Complex[] | 结果。 |
Method: divide(s, a) [static]
divide(s, a)
将 a 除以 s。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| s | float | s 值。 |
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 除法的结果。 |
Method: divide(s, a, result) [static]
divide(s, a, result)
将 s 除以 a。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| s | float | s 值。 |
| a | Complex | 该 a 复数。 |
| result | Complex[] | 结果。 |
Method: exp(a) [static]
exp(a)
将 e 提升 a。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | e raised by a。 |
Method: log(a) [static]
log(a)
获取 a 的对数。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 对 a 的对数。 |
Method: multiply(a, b) [static]
multiply(a, b)
将 a 乘以 b。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 乘法的结果。 |
Method: multiply(a, b, result) [static]
multiply(a, b, result)
将 a 乘以 b。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
| result | Complex[] | 结果。 |
Method: multiply(a, s) [static]
multiply(a, s)
将 a 乘以 s。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| s | float | s 值。 |
Returns
| Type | Description |
|---|---|
| Complex | 乘法的结果。 |
Method: multiply(a, s, result) [static]
multiply(a, s, result)
将 a 乘以 s。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| s | float | s 值。 |
| result | Complex[] | 结果。 |
Method: negate(a) [static]
negate(a)
对 a 取负。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 取负的结果。 |
Method: parse(s) [static]
parse(s)
将指定的 s 解析为一个 Complex。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| s | string | s 值。 |
Returns
| Type | Description |
|---|---|
| Complex | 复数。 |
Method: sin(a) [static]
sin(a)
获取 a 的正弦。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | Sin of a。 |
Method: sqrt(a) [static]
sqrt(a)
获取 a 的平方根。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 平方根。 |
Method: subtract(a, b) [static]
subtract(a, b)
从 a 中减去 b。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 减法的结果。 |
Method: subtract(a, b, result) [static]
subtract(a, b, result)
从 a 中减去 b。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| b | Complex | 该 b 复数。 |
| result | Complex[] | 结果。 |
Method: subtract(a, s) [static]
subtract(a, s)
从 a 中减去 s。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| s | float | s 值。 |
Returns
| Type | Description |
|---|---|
| Complex | 减法的结果。 |
Method: subtract(a, s, result) [static]
subtract(a, s, result)
从 a 中减去 s。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
| s | float | s 值。 |
| result | Complex[] | 结果。 |
Method: subtract(s, a) [static]
subtract(s, a)
从 a 中减去 s。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| s | float | s 值。 |
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | 减法的结果。 |
Method: subtract(s, a, result) [static]
subtract(s, a, result)
从 s 中减去 a。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| s | float | s 值。 |
| a | Complex | 该 a 复数。 |
| result | Complex[] | 结果。 |
Method: tan(a) [static]
tan(a)
获取 a 的正切。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| a | Complex | 该 a 复数。 |
Returns
| Type | Description |
|---|---|
| Complex | Tan of a。 |
Method: try_parse(s, result) [static]
try_parse(s, result)
尝试将指定的 s 解析为一个 Complex。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| s | string | s 值。 |
| result | Complex[] | 结果。 |
Returns
| Type | Description |
|---|---|
| bool | 如果成功解析复数,则为 True。 |