Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Acos()

static Complex System.Numerics.Complex.Acos ( Complex value)
inlinestatic

Definition at line 408 of file Complex.cs.

409 {
410 Asin_Internal(Math.Abs(value.Real), Math.Abs(value.Imaginary), out var b, out var bPrime, out var v);
411 double num = ((!(bPrime < 0.0)) ? Math.Atan(1.0 / bPrime) : Math.Acos(b));
412 if (value.Real < 0.0)
413 {
414 num = Math.PI - num;
415 }
416 if (value.Imaginary > 0.0)
417 {
418 v = 0.0 - v;
419 }
420 return new Complex(num, v);
421 }
Complex(double real, double imaginary)
Definition Complex.cs:38
static void Asin_Internal(double x, double y, out double b, out double bPrime, out double v)
Definition Complex.cs:452

References System.Numerics.Complex.Complex(), System.Math.Abs(), System.Math.Acos(), System.Numerics.Complex.Asin_Internal(), System.Math.Atan(), and System.value.