58 references to GeometryUtil
Microsoft.Maui.Graphics (38)
AbstractCanvas.cs (2)
270
var radians =
GeometryUtil
.DegreesToRadians(degrees);
283
var radians =
GeometryUtil
.DegreesToRadians(degrees);
ArcFlattener.cs (2)
53
var radians = (float)
GeometryUtil
.DegreesToRadians(angle);
92
if (
GeometryUtil
.GetDistance(midPointOnArc.X, midPointOnArc.Y, midPointOnLine.X, midPointOnLine.Y) <= flatness)
Color.cs (1)
153
if (Math.Abs(alpha - Alpha) <
GeometryUtil
.Epsilon)
GradientPaint.cs (6)
196
if (Math.Abs(currentOffset - offset) <
GeometryUtil
.Epsilon)
231
var f =
GeometryUtil
.GetFactor(before, after, offset);
250
var r =
GeometryUtil
.GetLinearValue(startColor.Red, endColor.Red, factor);
251
var g =
GeometryUtil
.GetLinearValue(startColor.Green, endColor.Green, factor);
252
var b =
GeometryUtil
.GetLinearValue(startColor.Blue, endColor.Blue, factor);
253
var a =
GeometryUtil
.GetLinearValue(startColor.Alpha, endColor.Alpha, factor);
Insets.cs (8)
61
return Math.Abs(_top - value) <
GeometryUtil
.Epsilon && Math.Abs(_left - value) <
GeometryUtil
.Epsilon && Math.Abs(_right - value) <
GeometryUtil
.Epsilon &&
62
Math.Abs(_bottom - value) <
GeometryUtil
.Epsilon;
69
return Math.Abs(vCompareTo.Top - Top) <
GeometryUtil
.Epsilon && Math.Abs(vCompareTo.Left - Left) <
GeometryUtil
.Epsilon && Math.Abs(vCompareTo.Bottom - Bottom) <
GeometryUtil
.Epsilon &&
70
Math.Abs(vCompareTo.Right - Right) <
GeometryUtil
.Epsilon;
InsetsF.cs (8)
61
return Math.Abs(_top - value) <
GeometryUtil
.Epsilon && Math.Abs(_left - value) <
GeometryUtil
.Epsilon && Math.Abs(_right - value) <
GeometryUtil
.Epsilon &&
62
Math.Abs(_bottom - value) <
GeometryUtil
.Epsilon;
69
return Math.Abs(vCompareTo.Top - Top) <
GeometryUtil
.Epsilon && Math.Abs(vCompareTo.Left - Left) <
GeometryUtil
.Epsilon && Math.Abs(vCompareTo.Bottom - Bottom) <
GeometryUtil
.Epsilon &&
70
Math.Abs(vCompareTo.Right - Right) <
GeometryUtil
.Epsilon;
PathArcExtensions.cs (6)
27
angle =
GeometryUtil
.DegreesToRadians(angle);
79
float angleStart =
GeometryUtil
.RadiansToDegrees(sign * MathF.Acos(p / n));
85
float angleExtent =
GeometryUtil
.RadiansToDegrees(sign * MathF.Acos(p / n));
121
float theta =
GeometryUtil
.DegreesToRadians(segAngle);
122
float angle =
GeometryUtil
.DegreesToRadians(startAngle);
127
float beta =
GeometryUtil
.DegreesToRadians(xAxisRotation);
PathBuilder.cs (2)
570
point1 =
GeometryUtil
.GetOppositePoint((PointF)_relativePoint, point2);
574
point1 =
GeometryUtil
.GetOppositePoint((PointF)_relativePoint, (PointF)_lastCurveControlPoint);
PathF.cs (3)
928
return
GeometryUtil
.RotatePoint(pivotPoint, point, angle);
1307
if (!point.Equals(compareTo[i],
GeometryUtil
.Epsilon))
1316
if (Math.Abs(arcAngle - compareTo.GetArcAngle(i)) >
GeometryUtil
.Epsilon)
Microsoft.Maui.Graphics.Skia (6)
SKGraphicsExtensions.cs (3)
169
var sweep =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
249
var sweep =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
325
var sweep =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
SkiaCanvas.cs (3)
294
radius =
GeometryUtil
.GetDistance(rectangle.Left, rectangle.Top, rectangle.Right, rectangle.Bottom);
416
var sweep =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
460
var sweep =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (14)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (6)
202
var rotation =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
210
var startPoint =
GeometryUtil
.EllipseAngleToPoint(rectX, rectY, rectWidth, rectHeight, -startAngle);
211
var endPoint =
GeometryUtil
.EllipseAngleToPoint(rectX, rectY, rectWidth, rectHeight, -endAngle);
330
var rotation =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
338
var startPoint =
GeometryUtil
.EllipseAngleToPoint(rectX, rectY, rectWidth, rectHeight, -startAngle);
339
var endPoint =
GeometryUtil
.EllipseAngleToPoint(rectX, rectY, rectWidth, rectHeight, -endAngle);
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (6)
177
var rotation =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
186
var startPoint =
GeometryUtil
.EllipseAngleToPoint((float)_rect.X, (float)_rect.Y, (float)_rect.Width, (float)_rect.Height, -startAngle);
187
var endPoint =
GeometryUtil
.EllipseAngleToPoint((float)_rect.X, (float)_rect.Y, (float)_rect.Width, (float)_rect.Height, -endAngle);
565
var rotation =
GeometryUtil
.GetSweep(startAngle, endAngle, clockwise);
574
var startPoint =
GeometryUtil
.EllipseAngleToPoint((float)_rect.X, (float)_rect.Y, (float)_rect.Width, (float)_rect.Height, -startAngle);
575
var endPoint =
GeometryUtil
.EllipseAngleToPoint((float)_rect.X, (float)_rect.Y, (float)_rect.Width, (float)_rect.Height, -endAngle);
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (2)
468
float radians =
GeometryUtil
.DegreesToRadians(aAngle);
475
float radians =
GeometryUtil
.DegreesToRadians(aAngle);