Complex
Declaration
public struct tainicom.Aether.Physics2D.Common.Complex
Constructors
Complex
void Complex(float real, float imaginary)
Parameters:
| Name | Type | Description |
|---|---|---|
real |
System.Single |
|
imaginary |
System.Single |
Properties
One static
Complex One { get }
ImaginaryOne static
Complex ImaginaryOne { get }
Phase
float Phase { get set }
Magnitude
float Magnitude { get }
Fields
R
float R
i
float i
Methods
FromAngle static
Complex FromAngle(float angle)
Parameters:
| Name | Type | Description |
|---|---|---|
angle |
System.Single |
Conjugate
void Conjugate()
Negate
void Negate()
MagnitudeSquared
float MagnitudeSquared()
Normalize
void Normalize()
ToVector2
Vector2 ToVector2()
Multiply static
Complex Multiply(ref Complex left, ref Complex right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref tainicom.Aether.Physics2D.Common.Complex |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
Divide static
Complex Divide(ref Complex left, ref Complex right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref tainicom.Aether.Physics2D.Common.Complex |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
Divide static
void Divide(ref Complex left, ref Complex right, out Complex result)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref tainicom.Aether.Physics2D.Common.Complex |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
|
result |
out tainicom.Aether.Physics2D.Common.Complex |
Multiply static
Vector2 Multiply(ref Vector2 left, ref Complex right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
Multiply static
void Multiply(ref Vector2 left, ref Complex right, out Vector2 result)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
|
result |
out Strawberry.Math.Vector2 |
Multiply static
Vector2 Multiply(Vector2 left, ref Complex right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
Divide static
Vector2 Divide(ref Vector2 left, ref Complex right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
Divide static
Vector2 Divide(Vector2 left, ref Complex right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
Divide static
void Divide(Vector2 left, ref Complex right, out Vector2 result)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Complex |
|
result |
out Strawberry.Math.Vector2 |
Conjugate static
Complex Conjugate(ref Complex value)
Parameters:
| Name | Type | Description |
|---|---|---|
value |
ref tainicom.Aether.Physics2D.Common.Complex |
Negate static
Complex Negate(ref Complex value)
Parameters:
| Name | Type | Description |
|---|---|---|
value |
ref tainicom.Aether.Physics2D.Common.Complex |
Normalize static
Complex Normalize(ref Complex value)
Parameters:
| Name | Type | Description |
|---|---|---|
value |
ref tainicom.Aether.Physics2D.Common.Complex |
ToString override
string ToString()