27 references to Abs
Microsoft.Maui.Graphics (8)
Matrix3x2Extensions.cs (4)
144
var areaScale = MathF.
Abs
(determinant);
166
scale = MathF.Sqrt(MathF.
Abs
(det));
167
scalex = value.M12 == 0 ? MathF.
Abs
(value.M11) : new Vector2(value.M11, value.M12).Length();
168
scaley = value.M21 == 0 ? MathF.
Abs
(value.M22) : new Vector2(value.M21, value.M22).Length();
PathArcExtensions.cs (4)
36
rx = MathF.
Abs
(rx);
37
ry = MathF.
Abs
(ry);
109
if (MathF.
Abs
(arc) > 360)
116
float segs = MathF.Ceiling(MathF.
Abs
(arc) / 45);
Microsoft.Maui.Graphics.Skia (2)
SKGraphicsExtensions.cs (2)
71
return new RectF(target.Left, target.Top, MathF.
Abs
(target.Right - target.Left), MathF.
Abs
(target.Bottom - target.Top));
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);
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (13)
163
float alternativeResult = (regularMod - (
Abs
(y) * Sign(x)));
165
if (
Abs
(alternativeResult) ==
Abs
(regularMod))
170
if (
Abs
(roundedResult) >
Abs
(divisionResult))
180
if (
Abs
(alternativeResult) <
Abs
(regularMod))
258
float ax =
Abs
(x);
259
float ay =
Abs
(y);
290
float ax =
Abs
(x);
291
float ay =
Abs
(y);
359
if (
Abs
(x) >= IntegerBoundary)
450
if (
Abs
(x) < singleIntegerBoundary)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1056
public static float Abs(float value) => MathF.
Abs
(value);
System.Windows.Forms (1)
System\Windows\Forms\Rendering\Button\PopupButtonColorMath.cs (1)
162
float delta = MathF.
Abs
(GetLuminance(color) - GetLuminance(against));