20 references to Atan2
Microsoft.Maui (2)
Platform\ViewExtensions.cs (1)
38 internal static double ExtractAngleInRadians(this Matrix4x4 matrix) => Math.Atan2(matrix.M21, matrix.M11);
Primitives\SwipeDirection.cs (1)
31 double rad = Math.Atan2(y1 - y2, x2 - x1) + Math.PI;
Microsoft.Maui.Controls (2)
Shapes\GeometryHelper.cs (2)
316 double angle1 = Math.Atan2(pt1.Y - center.Y, pt1.X - center.X); 317 double angle2 = Math.Atan2(pt2.Y - center.Y, pt2.X - center.X);
Microsoft.Maui.Maps (2)
Primitives\Distance.cs (1)
70 distance = 2 * GeographyUtils.EarthRadiusKm * Math.Atan2(Math.Sqrt(distance), Math.Sqrt(1 - distance));
Primitives\GeographyUtils.cs (1)
29 Math.Atan2(Math.Sin(angleInRadians) * Math.Sin(distance) * Math.Cos(centerLatitude),
Microsoft.ML.Transforms (2)
Expression\BuiltinFunctions.cs (2)
645return (R4)Math.Atan2(a, b); 655return Math.Atan2(a, b);
PresentationCore (2)
System\Windows\Input\Stylus\Pointer\PointerFlickEngine.cs (1)
432_flickDirectionRadians = Math.Atan2(newData.PhysicalPoint.Y - _flickStartPhysical.Y, newData.PhysicalPoint.X - _flickStartPhysical.X);
System\Windows\Media3D\Quaternion.cs (1)
161return Math.Atan2(msin,mcos) * (360.0 / Math.PI);
ReachFramework (2)
AlphaFlattener\BrushProxy.cs (1)
4141double rotateAngle = Math.Atan2(-gradientVector.Y, gradientVector.X) * 180.0 / Math.PI;
Serialization\DrawingContextFlattener.cs (1)
572rAngle = Math.Atan2(rSinArcAngle, rCosArcAngle);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
811public static double Atan2(double y, double x) => Math.Atan2(y, x);
System.Runtime.Numerics (3)
System\Numerics\Complex.cs (3)
64public double Phase { get { return Math.Atan2(m_imaginary, m_real); } } 614return new Complex(Math.Log(Abs(value)), Math.Atan2(value.m_imaginary, value.m_real)); 754double theta = Math.Atan2(valueImaginary, valueReal);
System.Windows.Input.Manipulations (4)
System\Windows\Input\Manipulations\ManipulationSequence.cs (2)
900double oldAngle = Math.Atan2(oldVectorForRotationCalc.Y, oldVectorForRotationCalc.X); 901double newAngle = Math.Atan2(newVectorForRotationCalc.Y, newVectorForRotationCalc.X);
System\Windows\Input\Manipulations\VectorF.cs (2)
411double angle = Math.Atan2(vector2.y, vector2.x) - Math.Atan2(vector1.y, vector1.x);