50 references to PI
PresentationCore (27)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1408double dAngle = (tdrd.Transform[0] / 100) * (Math.PI / 180);
MS\Internal\Ink\StrokeRenderer.cs (6)
1054angle = Math.PI / 2.0; 1058angle = Math.PI * 3.0 / 2.0; 1069angle = Math.PI; 1076angle = Math.Atan(dy / dx) + Math.PI; 1080angle = Math.Atan(dy / dx) + (2 * Math.PI); 1089angle = angle * 180 / Math.PI;
MS\Internal\Media3D\M3DUtil.cs (2)
378return radians*(180.0/Math.PI); 383return degrees*(Math.PI/180.0);
System\Windows\Input\AngleUtil.cs (2)
16return degrees * Math.PI / 180.0; 24return radians * 180.0 / Math.PI;
System\Windows\Input\Stylus\Pointer\PointerFlickEngine.cs (1)
484return ((180 * radians / Math.PI) + 360) % 360;
System\Windows\Media\Animation\BackEase.cs (1)
45return Math.Pow(normalizedTime, 3.0) - normalizedTime * amp * Math.Sin(Math.PI * normalizedTime);
System\Windows\Media\Animation\DoubleAnimationUsingPath.cs (1)
304double angle = Math.Acos(x) * (180.0 / Math.PI);
System\Windows\Media\Animation\ElasticEase.cs (2)
84return expo * (Math.Sin((Math.PI * 2.0 * oscillations + Math.PI * 0.5) * normalizedTime));
System\Windows\Media\Animation\SineEase.cs (1)
16return 1.0 - Math.Sin(Math.PI * 0.5 * (1 - normalizedTime));
System\Windows\Media\Effects\DropShadowEffect.cs (1)
45double direction = Math.PI/180 * Direction;
System\Windows\Media\EllipseGeometry.cs (1)
254double area = Math.Abs(RadiusX * RadiusY) * Math.PI;
System\Windows\Media\LinearGradientBrush.cs (1)
224angle = angle * (1.0/180.0) * System.Math.PI;
System\Windows\Media\RectangleGeometry.cs (1)
302area -= Math.Abs(radiusX * radiusY) * (4.0 - Math.PI);
System\Windows\Media3D\AxisAngleRotation3D.cs (2)
122Math.E, Math.PI, Math.E * Math.PI, 55.0
System\Windows\Media3D\Quaternion.cs (3)
89double angleInRadians = angleInDegrees * (Math.PI / 180.0); 180return Math.Atan2(msin,mcos) * (360.0 / Math.PI); 561double theta = t * Math.PI;
System\Windows\Media3D\Vector3D.cs (1)
172theta = Math.PI - 2.0 * Math.Asin((-vector1 - vector2).Length / 2.0);
PresentationFramework (1)
System\Windows\Documents\TextStore.cs (1)
2883double angleCos = Math.Round((radCos * 180) / Math.PI, 0);
ReachFramework (4)
AlphaFlattener\BrushProxy.cs (1)
4145double rotateAngle = Math.Atan2(-gradientVector.Y, gradientVector.X) * 180.0 / Math.PI;
Serialization\DrawingContextFlattener.cs (3)
473const double PI_OVER_180 = Math.PI / 180; // PI/180 588rAngle += Math.PI * 2; 595rAngle -= Math.PI * 2;
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\Tensor.Factory.cs (1)
153values[i] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2));
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
71public const double Pi = Math.PI;
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (2)
37return degree * Math.PI / 180; 242const double Divisor = 2 * Math.PI;
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (2)
383/// <paramref name="fieldOfView" /> is greater than or equal to <see cref="Math.PI" />. 400/// <paramref name="fieldOfView" /> is greater than or equal to <see cref="Math.PI" />.
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (1)
447double w = 2 * Math.PI / period;
System.Runtime.Numerics (1)
System\Numerics\Complex.cs (1)
488if (value.Real < 0.0) u = Math.PI - u;
System.Windows.Input.Manipulations (10)
System\Windows\Input\Manipulations\ManipulationSequence.cs (6)
903if (delta > Math.PI) 904delta -= Math.PI * 2.0; 905if (delta < -Math.PI) 906delta += Math.PI * 2.0; 1170float value2 = value + (float)(2 * Math.PI); 1171float value3 = value - (float)(2 * Math.PI);
System\Windows\Input\Manipulations\VectorF.cs (4)
415if (angle > Math.PI) 417angle -= Math.PI * 2.0; 419else if (angle < -Math.PI) 421angle += Math.PI * 2.0;