54 references to Sin
aspire-tray (1)
src\Aspire.Tray\Common\TrayPanelGeometry.cs (1)
102
var y0 = centerY + radius * Math.
Sin
(start);
Aspire.Tray.Tests (2)
src\Aspire.Tray\Common\TrayPanelGeometry.cs (1)
102
var y0 = centerY + radius * Math.
Sin
(start);
TrayPanelTests.cs (1)
1040
Assert.Equal(20 + 5 * Math.
Sin
(end), cubics[^1].Y3, 6);
Microsoft.Maui (1)
Animations\Easing.cs (1)
31
public static readonly Easing SinOut = new(x => Math.
Sin
(x * Math.PI * 0.5f));
Microsoft.Maui.Controls (4)
Shapes\GeometryHelper.cs (2)
76
double x = elipGeoSrc.Center.X + elipGeoSrc.RadiusX * Math.
Sin
(i * 2 * Math.PI / max);
350
double y = center.Y + radiusY * Math.
Sin
(angle);
Shapes\Matrix.cs (1)
560
double sin = Math.
Sin
(angle);
Shapes\RotateTransform.cs (1)
73
double sin = Math.
Sin
(radians);
Microsoft.Maui.Essentials (4)
UnitConverters\UnitConverters.shared.cs (4)
258
var dLat2 = Math.
Sin
(dLat / 2) * Math.
Sin
(dLat / 2);
259
var dLon2 = Math.
Sin
(dLon / 2) * Math.
Sin
(dLon / 2);
Microsoft.Maui.Graphics (1)
ArcFlattener.cs (1)
68
var y2 = y + (Math.
Sin
(radians) * distance);
Microsoft.Maui.Maps (8)
Primitives\Distance.cs (2)
63
var distance = Math.
Sin
((latitude2 - latitude1) / 2.0);
66
var intermediate = Math.
Sin
((longitude2 - longitude1) / 2.0);
Primitives\GeographyUtils.cs (6)
26
double latitude = Math.Asin(Math.
Sin
(centerLatitude) * Math.Cos(distance) +
27
Math.Cos(centerLatitude) * Math.
Sin
(distance) * Math.Cos(angleInRadians));
29
Math.Atan2(Math.
Sin
(angleInRadians) * Math.
Sin
(distance) * Math.Cos(centerLatitude),
30
Math.Cos(distance) - Math.
Sin
(centerLatitude) * Math.
Sin
(latitude));
Microsoft.ML.AutoML (3)
Sweepers\SweeperProbabilityUtils.cs (1)
41
rvs.Add(mu + sigma * Math.Sqrt(-2.0 * Math.Log(u1)) * Math.
Sin
(2.0 * Math.PI * u2));
Tuner\SmacTuner.cs (1)
291
var newFeatured = mu + sigma * Math.Sqrt(-2.0 * Math.Log(u1)) * Math.
Sin
(2.0 * Math.PI * u2);
Utils\RandomNumberGenerator.cs (1)
37
double std = Math.Sqrt(-2.0 * Math.Log(u)) * Math.
Sin
(2.0 * Math.PI * v);
Microsoft.ML.Core (1)
Utilities\MathUtils.cs (1)
826
var res = Math.
Sin
(a);
Microsoft.ML.Samples (1)
Dynamic\Transforms\TimeSeries\DetectSeasonality.cs (1)
18
var seasonalData = Enumerable.Range(0, 100).Select(x => new TimeSeriesData(Math.
Sin
(2 * Math.PI + x)));
Microsoft.ML.Sweeper (1)
Algorithms\SweeperProbabilityUtils.cs (1)
71
rvs.Add(mu + sigma * Math.Sqrt(-2.0 * Math.Log(u1)) * Math.
Sin
(2.0 * Math.PI * u2));
Microsoft.ML.Tests (1)
Scenarios\ClusteringTests.cs (1)
40
clusters[i] = new ClusteringData { Points = new float[2] { (float)Math.Cos(Math.PI * i * 2 / k), (float)Math.
Sin
(Math.PI * i * 2 / k) } };
Microsoft.ML.TimeSeries.Tests (1)
TimeSeriesDirectApi.cs (1)
1141
Value = Math.
Sin
(2 * Math.PI + x),
Microsoft.ML.Transforms (2)
Expression\BuiltinFunctions.cs (2)
557
return (R4)Math.
Sin
(a);
569
return (R4)Math.
Sin
(a * (Math.PI / 180));
PresentationCore (10)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1394
M01 = Math.
Sin
(dAngle);
System\Windows\Media\Animation\BackEase.cs (1)
44
return Math.Pow(normalizedTime, 3.0) - normalizedTime * amp * Math.
Sin
(Math.PI * normalizedTime);
System\Windows\Media\Animation\ElasticEase.cs (1)
83
return expo * (Math.
Sin
((Math.PI * 2.0 * oscillations + Math.PI * 0.5) * normalizedTime));
System\Windows\Media\Animation\SineEase.cs (1)
15
return 1.0 - Math.
Sin
(Math.PI * 0.5 * (1 - normalizedTime));
System\Windows\Media\Effects\DropShadowEffect.cs (1)
41
double offsetY = depth * Math.
Sin
(direction);
System\Windows\Media\LinearGradientBrush.cs (1)
212
return (new Point(System.Math.Cos(angle), System.Math.
Sin
(angle)));
System\Windows\Media3D\Quaternion.cs (4)
73
Vector3D v = (axisOfRotation / length) * Math.
Sin
(0.5 * angleInRadians);
544
scaleTo = Math.
Sin
(theta);
551
scaleFrom = Math.
Sin
((1.0 - t) * omega) / sinOmega;
552
scaleTo = Math.
Sin
(t * omega) / sinOmega;
ReachFramework (2)
Serialization\DrawingContextFlattener.cs (2)
590
rSinArcAngle = Math.
Sin
(rAngle);
752
double rSin = Math.
Sin
(rRotation);
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\Tensor.cs (4)
550
span[i] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.
Sin
(2.0 * Math.PI * u2));
570
span[j] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.
Sin
(2.0 * Math.PI * u2));
581
enumerator.Current = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.
Sin
(2.0 * Math.PI * u2));
2243
span[i] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.
Sin
(2.0 * Math.PI * u2));
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
2259
public static double Sin(double x) => Math.
Sin
(x);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (1)
41
return Math.
Sin
(RadiansFromDegrees(degree));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (1)
463
return new Complex(q1 - q2 * cos, q2 * Math.
Sin
(w)) / numSamples;
System\Math.NativeAot.cs (1)
168
return (
Sin
(x), Cos(x));
System.Speech (1)
Internal\Synthesis\PcmConverter.cs (1)
310
dSinc = dGain * Math.
Sin
(dArg * i) / (Math.PI * i) * pdWindow[_iFilterHalf - i];
System.Windows.Forms (2)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (2)
242
bounds.Right - (int)(radius * Math.
Sin
(Math.PI / 4)),
288
bounds.Bottom - (int)(radius * Math.
Sin
(Math.PI / 4)),