139 references to MathF
Microsoft.Bcl.Numerics (1)
Microsoft.Bcl.Numerics.Forwards.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MathF))]
Microsoft.Maui (3)
Platform\iOS\TransformationExtensions.cs (3)
69 transform = transform.Rotate(rotationX * MathF.PI / 180.0f, 1.0f, 0.0f, 0.0f); 72 transform = transform.Rotate(rotationY * MathF.PI / 180.0f, 0.0f, 1.0f, 0.0f); 74 transform = transform.Rotate(rotation * MathF.PI / 180.0f, 0.0f, 0.0f, 1.0f);
Microsoft.Maui.Controls.Compatibility (4)
iOS\Renderers\BoxRenderer.cs (1)
22 const float PI = MathF.PI;
iOS\VisualElementTracker.cs (3)
325 transform = transform.Rotate(rotationX * MathF.PI / 180.0f, 1.0f, 0.0f, 0.0f); 327 transform = transform.Rotate(rotationY * MathF.PI / 180.0f, 0.0f, 1.0f, 0.0f); 329 transform = transform.Rotate(rotation * MathF.PI / 180.0f, 0.0f, 0.0f, 1.0f);
Microsoft.Maui.Graphics.Skia (4)
SKGraphicsExtensions.cs (2)
71 return new RectF(target.Left, target.Top, MathF.Abs(target.Right - target.Left), MathF.Abs(target.Bottom - target.Top));
SkiaImage.cs (2)
149 canvas.DrawImage(this, dirtyRect.Left, dirtyRect.Top, MathF.Round(dirtyRect.Width), MathF.Round(dirtyRect.Height));
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (2)
203 var absRotation = MathF.Abs(rotation); 331 var absRotation = MathF.Abs(rotation);
Microsoft.ML.CpuMath (1)
FactorizationMachine\AvxIntrinsics.cs (1)
184pw[j] -= learningRate / MathF.Sqrt(phw[j]) * g;
mscorlib (1)
mscorlib.cs (1)
24[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MathF))]
netstandard (1)
netstandard.cs (1)
1050[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MathF))]
System.Numerics.Tensors (12)
System\Numerics\Tensors\TensorPrimitives.Single.cs (12)
136/// This method effectively computes <c><paramref name="destination" />[i] = <see cref="MathF" />.Cosh(<paramref name="x" />[i])</c>. 143/// The angles in x must be in radians. Use <see cref="M:System.Single.DegreesToRadians(System.Single)"/> or multiply by <see cref="MathF.PI"/>/180 to convert degrees to radians. 206return MathF.Sqrt(Aggregate<SubtractSquaredOperator_Single, AddOperator_Single>(x, y)); 278/// This method effectively computes <c><paramref name="destination" />[i] = <see cref="MathF" />.Exp(<paramref name="x" />[i])</c>. 365/// This method effectively computes <c><paramref name="destination" />[i] = <see cref="MathF" />.Log(<paramref name="x" />[i])</c>. 388/// This method effectively computes <c><paramref name="destination" />[i] = <see cref="MathF" />.Log2(<paramref name="x" />[i])</c>. 696MathF.Sqrt(SumOfSquares(x)); 791/// This method effectively computes <c><paramref name="destination" />[i] = 1f / (1f + <see cref="MathF" />.Exp(-<paramref name="x" />[i]))</c>. 815/// This method effectively computes <c><paramref name="destination" />[i] = <see cref="MathF" />.Sinh(<paramref name="x" />[i])</c>. 822/// The angles in x must be in radians. Use <see cref="M:System.Single.DegreesToRadians(System.Single)"/> or multiply by <see cref="MathF.PI"/>/180 to convert degrees to radians. 967/// This method effectively computes <c><paramref name="destination" />[i] = <see cref="MathF" />.Tanh(<paramref name="x" />[i])</c>. 975/// The angles in x must be in radians. Use <see cref="M:System.Single.DegreesToRadians(System.Single)"/> or multiply by <see cref="MathF.PI"/>/180 to convert degrees to radians.
System.Private.CoreLib (108)
src\libraries\System.Private.CoreLib\src\System\Half.cs (36)
1237public static Half Log2(Half value) => (Half)MathF.Log2((float)value); 1291public static Half Exp(Half x) => (Half)MathF.Exp((float)x); 1313public static Half Ceiling(Half x) => (Half)MathF.Ceiling((float)x); 1324public static Half Floor(Half x) => (Half)MathF.Floor((float)x); 1327public static Half Round(Half x) => (Half)MathF.Round((float)x); 1330public static Half Round(Half x, int digits) => (Half)MathF.Round((float)x, digits); 1333public static Half Round(Half x, MidpointRounding mode) => (Half)MathF.Round((float)x, mode); 1336public static Half Round(Half x, int digits, MidpointRounding mode) => (Half)MathF.Round((float)x, digits, mode); 1339public static Half Truncate(Half x) => (Half)MathF.Truncate((float)x); 1440public static Half Atan2(Half y, Half x) => (Half)MathF.Atan2((float)y, (float)x); 1512public static Half FusedMultiplyAdd(Half left, Half right, Half addend) => (Half)MathF.FusedMultiplyAdd((float)left, (float)right, (float)addend); 1515public static Half Ieee754Remainder(Half left, Half right) => (Half)MathF.IEEERemainder((float)left, (float)right); 1549public static Half ReciprocalEstimate(Half x) => (Half)MathF.ReciprocalEstimate((float)x); 1552public static Half ReciprocalSqrtEstimate(Half x) => (Half)MathF.ReciprocalSqrtEstimate((float)x); 1555public static Half ScaleB(Half x, int n) => (Half)MathF.ScaleB((float)x, n); 1565public static Half Acosh(Half x) => (Half)MathF.Acosh((float)x); 1568public static Half Asinh(Half x) => (Half)MathF.Asinh((float)x); 1571public static Half Atanh(Half x) => (Half)MathF.Atanh((float)x); 1574public static Half Cosh(Half x) => (Half)MathF.Cosh((float)x); 1577public static Half Sinh(Half x) => (Half)MathF.Sinh((float)x); 1580public static Half Tanh(Half x) => (Half)MathF.Tanh((float)x); 1599public static Half Log(Half x) => (Half)MathF.Log((float)x); 1602public static Half Log(Half x, Half newBase) => (Half)MathF.Log((float)x, (float)newBase); 1605public static Half Log10(Half x) => (Half)MathF.Log10((float)x); 1852public static Half MaxMagnitude(Half x, Half y) => (Half)MathF.MaxMagnitude((float)x, (float)y); 1880public static Half MinMagnitude(Half x, Half y) => (Half)MathF.MinMagnitude((float)x, (float)y); 2171public static Half Pow(Half x, Half y) => (Half)MathF.Pow((float)x, (float)y); 2178public static Half Cbrt(Half x) => (Half)MathF.Cbrt((float)x); 2187public static Half Sqrt(Half x) => (Half)MathF.Sqrt((float)x); 2218public static Half Acos(Half x) => (Half)MathF.Acos((float)x); 2224public static Half Asin(Half x) => (Half)MathF.Asin((float)x); 2230public static Half Atan(Half x) => (Half)MathF.Atan((float)x); 2236public static Half Cos(Half x) => (Half)MathF.Cos((float)x); 2260public static Half Sin(Half x) => (Half)MathF.Sin((float)x); 2265var (sin, cos) = MathF.SinCos((float)x); 2280public static Half Tan(Half x) => (Half)MathF.Tan((float)x);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (9)
270return (T)(object)MathF.Ceiling((float)(object)value); 582return (T)(object)MathF.Floor((float)(object)value); 1271return (T)(object)MathF.Round((float)(object)value); 1471return (T)(object)(byte)MathF.Sqrt((byte)(object)value); 1479return (T)(object)(short)MathF.Sqrt((short)(object)value); 1499return (T)(object)(sbyte)MathF.Sqrt((sbyte)(object)value); 1503return (T)(object)(float)MathF.Sqrt((float)(object)value); 1507return (T)(object)(ushort)MathF.Sqrt((ushort)(object)value); 1591return (T)(object)MathF.Truncate((float)(object)value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
315/// <seealso cref="MathF.Ceiling(float)" /> 1617/// <seealso cref="MathF.Floor(float)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
353/// <seealso cref="MathF.Ceiling(float)" /> 1708/// <seealso cref="MathF.Floor(float)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
353/// <seealso cref="MathF.Ceiling(float)" /> 1757/// <seealso cref="MathF.Floor(float)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
321/// <seealso cref="MathF.Ceiling(float)" /> 1493/// <seealso cref="MathF.Floor(float)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (55)
67public const float E = MathF.E; 71public const float Pi = MathF.PI; 75public const float Tau = MathF.Tau; 574public static float Log2(float value) => MathF.Log2(value); 628public static float Exp(float x) => MathF.Exp(x); 631public static float ExpM1(float x) => MathF.Exp(x) - 1; 634public static float Exp2(float x) => MathF.Pow(2, x); 637public static float Exp2M1(float x) => MathF.Pow(2, x) - 1; 640public static float Exp10(float x) => MathF.Pow(10, x); 643public static float Exp10M1(float x) => MathF.Pow(10, x) - 1; 651public static float Ceiling(float x) => MathF.Ceiling(x); 677public static float Floor(float x) => MathF.Floor(x); 681public static float Round(float x) => MathF.Round(x); 684public static float Round(float x, int digits) => MathF.Round(x, digits); 687public static float Round(float x, MidpointRounding mode) => MathF.Round(x, mode); 690public static float Round(float x, int digits, MidpointRounding mode) => MathF.Round(x, digits, mode); 694public static float Truncate(float x) => MathF.Truncate(x); 808public static float Atan2(float y, float x) => MathF.Atan2(y, x); 814public static float BitDecrement(float x) => MathF.BitDecrement(x); 817public static float BitIncrement(float x) => MathF.BitIncrement(x); 821public static float FusedMultiplyAdd(float left, float right, float addend) => MathF.FusedMultiplyAdd(left, right, addend); 824public static float Ieee754Remainder(float left, float right) => MathF.IEEERemainder(left, right); 827public static int ILogB(float x) => MathF.ILogB(x); 834public static float ReciprocalEstimate(float x) => MathF.ReciprocalEstimate(x); 838public static float ReciprocalSqrtEstimate(float x) => MathF.ReciprocalSqrtEstimate(x); 841public static float ScaleB(float x, int n) => MathF.ScaleB(x, n); 852public static float Acosh(float x) => MathF.Acosh(x); 856public static float Asinh(float x) => MathF.Asinh(x); 860public static float Atanh(float x) => MathF.Atanh(x); 864public static float Cosh(float x) => MathF.Cosh(x); 868public static float Sinh(float x) => MathF.Sinh(x); 872public static float Tanh(float x) => MathF.Tanh(x); 887public static float Log(float x) => MathF.Log(x); 890public static float Log(float x, float newBase) => MathF.Log(x, newBase); 893public static float LogP1(float x) => MathF.Log(x + 1); 897public static float Log10(float x) => MathF.Log10(x); 900public static float Log2P1(float x) => MathF.Log2(x + 1); 903public static float Log10P1(float x) => MathF.Log10(x + 1); 961public static float CopySign(float value, float sign) => MathF.CopySign(value, sign); 965public static float Max(float x, float y) => MathF.Max(x, y); 996public static float Min(float x, float y) => MathF.Min(x, y); 1026public static int Sign(float value) => MathF.Sign(value); 1043public static float Abs(float value) => MathF.Abs(value); 1159public static float MaxMagnitude(float x, float y) => MathF.MaxMagnitude(x, y); 1189public static float MinMagnitude(float x, float y) => MathF.MinMagnitude(x, y); 1499public static float Pow(float x, float y) => MathF.Pow(x, y); 1507public static float Cbrt(float x) => MathF.Cbrt(x); 1688public static float Sqrt(float x) => MathF.Sqrt(x); 1720public static float Acos(float x) => MathF.Acos(x); 1730public static float Asin(float x) => MathF.Asin(x); 1740public static float Atan(float x) => MathF.Atan(x); 1750public static float Cos(float x) => MathF.Cos(x); 1861public static float Sin(float x) => MathF.Sin(x); 1864public static (float Sin, float Cos) SinCos(float x) => MathF.SinCos(x); 2069public static float Tan(float x) => MathF.Tan(x);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
347[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MathF))]
System.Runtime.Extensions (1)
System.Runtime.Extensions.cs (1)
22[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MathF))]