Table of Contents

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

real float

The real

imaginary float

The imaginary

Fields

R

The

public float R

Field Value

float

i

The

public float i

Field Value

float

Properties

ImaginaryOne

Gets the value of the imaginary one

public static Complex ImaginaryOne { get; }

Property Value

Complex

Magnitude

Gets the value of the magnitude

public float Magnitude { get; }

Property Value

float

One

Gets the value of the one

public static Complex One { get; }

Property Value

Complex

Phase

Gets or sets the value of the phase

public float Phase { get; set; }

Property Value

float

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

left Complex

The left

right Complex

The right

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

left Complex

The left

right Complex

The right

result Complex

The result

Divide(ref Vector2, ref Complex)

Divides the left

public static Vector2 Divide(ref Vector2 left, ref Complex right)

Parameters

left Vector2

The left

right Complex

The right

Returns

Vector2

The vector

Divide(Vector2, ref Complex)

Divides the left

public static Vector2 Divide(Vector2 left, ref Complex right)

Parameters

left Vector2

The left

right Complex

The right

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

left Vector2

The left

right Complex

The right

result Vector2

The result

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

left Complex

The left

right Complex

The right

Returns

Complex

The complex

Multiply(ref Vector2, ref Complex)

Multiplies the left

public static Vector2 Multiply(ref Vector2 left, ref Complex right)

Parameters

left Vector2

The left

right Complex

The right

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

left Vector2

The left

right Complex

The right

result Vector2

The result

Multiply(Vector2, ref Complex)

Multiplies the left

public static Vector2 Multiply(Vector2 left, ref Complex right)

Parameters

left Vector2

The left

right Complex

The right

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