33 references to Cos
Microsoft.Maui (2)
Animations\Easing.cs (2)
36
public static readonly Easing SinIn = new(x => 1.0f - Math.
Cos
(x * Math.PI * 0.5f));
41
public static readonly Easing SinInOut = new(x => -Math.
Cos
(Math.PI * x) / 2.0f + 0.5f);
Microsoft.Maui.Controls (4)
Shapes\GeometryHelper.cs (2)
77
double y = elipGeoSrc.Center.Y - elipGeoSrc.RadiusY * Math.
Cos
(i * 2 * Math.PI / max);
349
double x = center.X + radiusY * Math.
Cos
(angle);
Shapes\Matrix.cs (1)
561
double cos = Math.
Cos
(angle);
Shapes\RotateTransform.cs (1)
74
double cos = Math.
Cos
(radians);
Microsoft.Maui.Essentials (2)
UnitConverters\UnitConverters.shared.cs (2)
261
var a = dLat2 + dLon2 * Math.
Cos
(lat1) * Math.
Cos
(lat2);
Microsoft.Maui.Graphics (1)
ArcFlattener.cs (1)
67
var x2 = x + (Math.
Cos
(radians) * distance);
Microsoft.Maui.Maps (8)
Primitives\Distance.cs (2)
69
distance = distance + Math.
Cos
(latitude1) * Math.
Cos
(latitude2) * intermediate;
Primitives\GeographyUtils.cs (5)
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));
Primitives\MapSpan.cs (1)
102
return EarthCircumferenceKm * Math.
Cos
(location.Latitude * Math.PI / 180.0);
Microsoft.ML.Core (1)
Utilities\MathUtils.cs (1)
836
var res = Math.
Cos
(a);
Microsoft.ML.Sweeper (1)
SynthConfigRunner.cs (1)
90
total += Math.Pow(val, 2) - 10 * Math.
Cos
(2 * Math.PI * val);
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.Transforms (2)
Expression\BuiltinFunctions.cs (2)
581
return (R4)Math.
Cos
(a);
593
return (R4)Math.
Cos
(a * (Math.PI / 180));
PresentationCore (5)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1394
M00 = M11 = Math.
Cos
(dAngle);
System\Windows\Media\Effects\DropShadowEffect.cs (1)
41
double offsetX = depth * Math.
Cos
(direction);
System\Windows\Media\LinearGradientBrush.cs (1)
213
return (new Point(System.Math.
Cos
(angle), System.Math.Sin(angle)));
System\Windows\Media3D\Quaternion.cs (2)
78
_w = Math.
Cos
(0.5 * angleInRadians);
544
scaleFrom = Math.
Cos
(theta);
ReachFramework (2)
Serialization\DrawingContextFlattener.cs (2)
590
rCosArcAngle = Math.
Cos
(rAngle);
752
double rCos = Math.
Cos
(rRotation);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1834
public static double Cos(double x) => Math.
Cos
(x);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (1)
46
return Math.
Cos
(RadiansFromDegrees(degree));
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (1)
448
double cos = Math.
Cos
(w);
src\System\Math.CoreCLR.cs (1)
100
return (Sin(x),
Cos
(x));