Struct Complex
- Namespace
- Alis.Core.Physic.Common
- Assembly
- Alis.dll
The complex
public struct Complex
Inherited Members
Constructors
Complex(float, float)
Initializes a new instance of the Alis.Core.Physic.Common.Complex class
public Complex(float real, float imaginary)
Parameters
Fields
R
The
public float R
Field Value
i
The
public float i
Field Value
Properties
ImaginaryOne
Gets the value of the imaginary one
public static Complex ImaginaryOne { get; }
Property Value
Magnitude
Gets the value of the magnitude
public float Magnitude { get; }
Property Value
One
Gets the value of the one
public static Complex One { get; }
Property Value
Phase
Gets or sets the value of the phase
public float Phase { get; set; }
Property Value
Methods
Conjugate()
Conjugates this instance
public void Conjugate()
Conjugate(ref Complex)
Conjugates the value
public static Complex Conjugate(ref Complex value)
Parameters
value
Complex-
The value
Returns
- Complex
-
The complex
Divide(ref Complex, ref Complex)
Divides the left
public static Complex Divide(ref Complex left, ref Complex right)
Parameters
Returns
- Complex
-
The complex
Divide(ref Complex, ref Complex, out Complex)
Divides the left
public static void Divide(ref Complex left, ref Complex right, out Complex result)
Parameters
Divide(ref Vector2, ref Complex)
Divides the left
public static Vector2 Divide(ref Vector2 left, ref Complex right)
Parameters
Returns
- Vector2
-
The vector
Divide(Vector2, ref Complex)
Divides the left
public static Vector2 Divide(Vector2 left, ref Complex right)
Parameters
Returns
- Vector2
-
The vector
Divide(Vector2, ref Complex, out Vector2)
Divides the left
public static void Divide(Vector2 left, ref Complex right, out Vector2 result)
Parameters
FromAngle(float)
Creates the angle using the specified angle
public static Complex FromAngle(float angle)
Parameters
angle
float-
The angle
Returns
- Complex
-
The complex
MagnitudeSquared()
Magnitudes the squared
public float MagnitudeSquared()
Returns
- float
-
The float
Multiply(ref Complex, ref Complex)
Multiplies the left
public static Complex Multiply(ref Complex left, ref Complex right)
Parameters
Returns
- Complex
-
The complex
Multiply(ref Vector2, ref Complex)
Multiplies the left
public static Vector2 Multiply(ref Vector2 left, ref Complex right)
Parameters
Returns
- Vector2
-
The vector
Multiply(ref Vector2, ref Complex, out Vector2)
Multiplies the left
public static void Multiply(ref Vector2 left, ref Complex right, out Vector2 result)
Parameters
Multiply(Vector2, ref Complex)
Multiplies the left
public static Vector2 Multiply(Vector2 left, ref Complex right)
Parameters
Returns
- Vector2
-
The vector
Negate()
Negates this instance
public void Negate()
Negate(ref Complex)
Negates the value
public static Complex Negate(ref Complex value)
Parameters
value
Complex-
The value
Returns
- Complex
-
The complex
Normalize()
Normalizes this instance
public void Normalize()
Normalize(ref Complex)
Normalizes the value
public static Complex Normalize(ref Complex value)
Parameters
value
Complex-
The value
Returns
- Complex
-
The complex
ToString()
Returns the string
public override string ToString()
Returns
- string
-
The string
ToVector2()
Returns the vector 2
public Vector2 ToVector2()
Returns
- Vector2
-
The vector