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