46 references to Sin
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)
41rvs.Add(mu + sigma * Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2));
Tuner\SmacTuner.cs (1)
291var newFeatured = mu + sigma * Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2);
Utils\RandomNumberGenerator.cs (1)
37double std = Math.Sqrt(-2.0 * Math.Log(u)) * Math.Sin(2.0 * Math.PI * v);
Microsoft.ML.Core (1)
Utilities\MathUtils.cs (1)
826var res = Math.Sin(a);
Microsoft.ML.Samples (1)
Dynamic\Transforms\TimeSeries\DetectSeasonality.cs (1)
18var seasonalData = Enumerable.Range(0, 100).Select(x => new TimeSeriesData(Math.Sin(2 * Math.PI + x)));
Microsoft.ML.Sweeper (1)
Algorithms\SweeperProbabilityUtils.cs (1)
71rvs.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)
40clusters[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)
1070Value = Math.Sin(2 * Math.PI + x),
Microsoft.ML.Transforms (2)
Expression\BuiltinFunctions.cs (2)
557return (R4)Math.Sin(a); 569return (R4)Math.Sin(a * (Math.PI / 180));
PresentationCore (10)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1397M01 = Math.Sin(dAngle);
System\Windows\Media\Animation\BackEase.cs (1)
45return Math.Pow(normalizedTime, 3.0) - normalizedTime * amp * Math.Sin(Math.PI * normalizedTime);
System\Windows\Media\Animation\ElasticEase.cs (1)
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)
42double offsetY = depth * Math.Sin(direction);
System\Windows\Media\LinearGradientBrush.cs (1)
213return (new Point(System.Math.Cos(angle), System.Math.Sin(angle)));
System\Windows\Media3D\Quaternion.cs (4)
74Vector3D v = (axisOfRotation / length) * Math.Sin(0.5 * angleInRadians); 545scaleTo = Math.Sin(theta); 552scaleFrom = Math.Sin((1.0 - t) * omega) / sinOmega; 553scaleTo = Math.Sin(t * omega) / sinOmega;
ReachFramework (2)
Serialization\DrawingContextFlattener.cs (2)
591rSinArcAngle = Math.Sin(rAngle); 753double rSin = Math.Sin(rRotation);
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\Tensor.Factory.cs (1)
128values[i] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2));
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1918public static double Sin(double x) => Math.Sin(x);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (1)
41return Math.Sin(RadiansFromDegrees(degree));
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (1)
457return new Complex(q1 - q2 * cos, q2 * Math.Sin(w)) / numSamples;
src\System\Math.CoreCLR.cs (1)
100return (Sin(x), Cos(x));
WinFormsControlsTest (1)
ChartControl.cs (1)
22double yValue = (1.0 + Math.Sin(angle / 180.0 * Math.PI)) * 10.0;