64 references to Pi
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
191["float", "float.Pi", float.Pi, true],
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (6)
136Vector128<float> dn = MultiplyAddEstimateOperator<float>.Invoke(uxMasked, Vector128.Create(2 / float.Pi), Vector128.Create(AlmHuge)); 141f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector128.Create(-float.Pi / 2), f); 171Vector256<float> dn = MultiplyAddEstimateOperator<float>.Invoke(uxMasked, Vector256.Create(2 / float.Pi), Vector256.Create(AlmHuge)); 176f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector256.Create(-float.Pi / 2), f); 206Vector512<float> dn = MultiplyAddEstimateOperator<float>.Invoke(uxMasked, Vector512.Create(2 / float.Pi), Vector512.Create(AlmHuge)); 211f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector512.Create(-float.Pi / 2), f);
System.Private.CoreLib (57)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.Impl.cs (13)
32private const float RotationEpsilon = 0.001f * float.Pi / 180f; // 0.1% of a degree 137else if (radians > float.Pi / 2 - RotationEpsilon && radians < float.Pi / 2 + RotationEpsilon) 143else if (radians < -float.Pi + RotationEpsilon || radians > float.Pi - RotationEpsilon) 149else if (radians > -float.Pi / 2 - RotationEpsilon && radians < -float.Pi / 2 + RotationEpsilon) 187else if (radians > float.Pi / 2 - RotationEpsilon && radians < float.Pi / 2 + RotationEpsilon) 193else if (radians < -float.Pi + RotationEpsilon || radians > float.Pi - RotationEpsilon) 199else if (radians > -float.Pi / 2 - RotationEpsilon && radians < -float.Pi / 2 + RotationEpsilon)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (2)
749/// <paramref name="fieldOfView" /> is greater than or equal to <see cref="float.Pi" />. 766/// <paramref name="fieldOfView" /> is greater than or equal to <see cref="float.Pi" />.
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (3)
36private const float BillboardMinAngle = 1.0f - (0.1f * (float.Pi / 180.0f)); // 0.1 degrees 519ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(fieldOfView, float.Pi); 546ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(fieldOfView, float.Pi);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (1)
124get => Create(float.Pi);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (1)
137get => Create(float.Pi);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (3)
153/// <summary>Gets a vector whose elements are equal to <see cref="float.Pi" />.</summary> 154/// <value>A vector whose elements are equal to <see cref="float.Pi" /> (that is, it returns the vector <c>Create(float.Pi)</c>).</value> 158get => Create(float.Pi);
src\libraries\System.Private.CoreLib\src\System\Single.cs (34)
779static float IFloatingPointConstants<float>.Pi => Pi; 808public static float Atan2Pi(float y, float x) => Atan2(y, x) / Pi; 1726return Acos(x) / Pi; 1736return Asin(x) / Pi; 1746return Atan(x) / Pi; 1781result = sign * CosForIntervalPiBy4(fractional * Pi); 1792result = sign * SinForIntervalPiBy4((0.5f - fractional) * Pi); 1801result = -sign * SinForIntervalPiBy4((fractional - 0.5f) * Pi); 1805result = -sign * CosForIntervalPiBy4((1.0f - fractional) * Pi); 1810result = CosForIntervalPiBy4(x * Pi); 1814float value = x * Pi; 1848return (degrees * Pi) / 180.0f; 1857return (radians * 180.0f) / Pi; 1899float value = fractional * Pi; 1914float value = (0.5f - fractional) * Pi; 1927float value = (fractional - 0.5f) * Pi; 1934float value = (1.0f - fractional) * Pi; 1942float value = x * Pi; 1949float value = x * Pi; 1957sinPi = x * Pi; 2013result = sign * SinForIntervalPiBy4(fractional * Pi); 2024result = sign * CosForIntervalPiBy4((0.5f - fractional) * Pi); 2033result = sign * CosForIntervalPiBy4((fractional - 0.5f) * Pi); 2037result = sign * SinForIntervalPiBy4((1.0f - fractional) * Pi); 2042result = SinForIntervalPiBy4(x * Pi); 2046float value = x * Pi; 2051result = x * Pi; 2099result = sign * TanForIntervalPiBy4(fractional * Pi, isReciprocal: false); 2110result = -sign * TanForIntervalPiBy4((0.5f - fractional) * Pi, isReciprocal: true); 2119result = +sign * TanForIntervalPiBy4((fractional - 0.5f) * Pi, isReciprocal: true); 2123result = -sign * TanForIntervalPiBy4((1.0f - fractional) * Pi, isReciprocal: false); 2128result = TanForIntervalPiBy4(x * Pi, isReciprocal: false); 2132float value = x * Pi; 2137result = x * Pi;