8 writes to Y
Microsoft.Maui.Controls (2)
Shapes\PathFigureCollectionConverter.cs (2)
171
lastPoint.
Y
+= ReadNumber(!AllowComma);
174
lastPoint.
Y
= ReadNumber(!AllowComma);
Microsoft.Maui.Controls.Compatibility (1)
iOS\Renderers\ScrollViewRenderer.cs (1)
282
positionOnScroll.
Y
= positionOnScroll.Y.Clamp(0, ContentSize.Height);
Microsoft.Maui.Graphics (5)
Point.cs (5)
27
Y
= y;
33
Y
= sz.Height;
39
Y
= sz.Height;
45
Y
= v.Y;
74
p.
Y
+= dy;
160 references to Y
Microsoft.Maui (10)
Animations\AnimationLerpingExtensions.cs (2)
33
new Point(start.X.Lerp(end.X, progress), start.
Y
.Lerp(end.
Y
, progress));
Graphics\RectangleExtensions.cs (2)
23
point.
Y
>= 0 && point.
Y
<= rect.Height;
Primitives\SwipeDirection.cs (2)
25
var angle = GetAngleFromPoints(initialPoint.X, initialPoint.
Y
, endPoint.X, endPoint.
Y
);
VisualDiagnostics\AdornerModel.cs (3)
124
DpiHelper.RoundToPixel(point.
Y
, unitsPerPixel));
151
if (Tolerances.AreClose(point1.X, point2.X) && Tolerances.AreClose(point1.
Y
, point2.
Y
))
VisualDiagnostics\RectangleAdorner.cs (1)
85
box.Y = box.Y + Offset.
Y
;
Microsoft.Maui.Controls (97)
Brush\BrushTypeConverter.cs (1)
348
return new Point(hasPositionX ? positionX : position.X, hasPositionY ? positionY : position.
Y
);
LegacyLayouts\AbsoluteLayout.cs (1)
329
SetLayoutBounds(view, new Rect(position.X, position.
Y
, AutoSize, AutoSize));
LegacyLayouts\Layout.cs (1)
467
CompressedLayout.SetHeadlessOffset((VisualElement)LogicalChildrenInternal[i], isHeadless ? new Point(headlessOffset.X + Bounds.X, headlessOffset.
Y
+ Bounds.Y) : new Point());
Platform\GestureManager\GesturePlatformManager.iOS.cs (2)
199
var windowY = targetViewScreenLocation.Value.
Y
+ originPoint.Y;
209
var y = windowY - location.
Y
;
Platform\iOS\DragAndDropDelegate.cs (1)
341
double y = dragLocation.Y + screenLocation.Value.
Y
;
Platform\iOS\Extensions\BrushExtensions.cs (6)
69
StartPoint = new CGPoint(p1.X, p1.
Y
),
70
EndPoint = new CGPoint(p2.X, p2.
Y
)
96
StartPoint = new CGPoint(center.X, center.
Y
),
195
double y = startPoint.
Y
== 1 ? (startPoint.
Y
- radius) : (startPoint.
Y
+ radius);
Region.cs (1)
66
return Contains(pt.X, pt.
Y
);
ScrollView\ScrollView.cs (1)
385
var result = new ScrollToRequestedEventArgs(point.X, point.
Y
, args.ShouldAnimate);
Shapes\EllipseGeometry.cs (1)
60
var centerY = (float)Center.
Y
;
Shapes\GeometryHelper.cs (26)
77
double y = elipGeoSrc.Center.
Y
- elipGeoSrc.RadiusY * Math.Cos(i * 2 * Math.PI / max);
245
double y = (1 - t) * (1 - t) * (1 - t) * ptStart.
Y
+
246
3 * t * (1 - t) * (1 - t) * ptCtrl1.
Y
+
247
3 * t * t * (1 - t) * ptCtrl2.
Y
+
248
t * t * t * ptEnd.
Y
;
267
double y = (1 - t) * (1 - t) * ptStart.
Y
+
268
2 * t * (1 - t) * ptCtrl.
Y
+
269
t * t * ptEnd.
Y
;
288
Point midPoint = new Point((pt1.X + pt2.X) / 2, (pt1.
Y
+ pt2.
Y
) / 2);
289
Point vect = new Point(pt2.X - pt1.X, pt2.
Y
- pt1.
Y
);
290
double vectLength = Math.Sqrt(vect.X * vect.X + vect.
Y
* vect.
Y
);
296
vectRotated = new Point(-vect.
Y
, vect.X);
298
vectRotated = new Point(vect.
Y
, -vect.X);
301
double vectRotatedLength = Math.Sqrt(vectRotated.X * vectRotated.X + vectRotated.
Y
* vectRotated.
Y
);
303
vectRotated = new Point(vectRotated.X / vectRotatedLength, vectRotated.
Y
/ vectRotatedLength);
313
(centerDistance * vectRotated.
Y
) + midPoint.
Y
);
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);
350
double y = center.
Y
+ radiusY * Math.Sin(angle);
Shapes\LineGeometry.cs (2)
48
float startPointY = (float)StartPoint.
Y
;
51
float endPointY = (float)EndPoint.
Y
;
Shapes\Matrix.cs (10)
205
double y = newPoint.
Y
;
221
double y = point.
Y
;
745
rect.Y = Math.Min(Math.Min(point0.
Y
, point1.
Y
), Math.Min(point2.
Y
, point3.
Y
));
748
rect.Height = Math.Max(Math.Max(point0.
Y
, point1.
Y
), Math.Max(point2.
Y
, point3.
Y
)) - rect.Y;
Shapes\PathFigureCollectionConverter.cs (11)
334
2 * lastPoint.
Y
- secondLastPoint.
Y
);
443
y += lastPoint.
Y
;
595
.Append(pathFigure.StartPoint.
Y
.ToString(CultureInfo.InvariantCulture))
605
.Append(lineSegment.Point.
Y
.ToString(CultureInfo.InvariantCulture))
613
.Append(bezierSegment.Point1.
Y
.ToString(CultureInfo.InvariantCulture))
617
.Append(bezierSegment.Point2.
Y
.ToString(CultureInfo.InvariantCulture))
621
.Append(bezierSegment.Point3.
Y
.ToString(CultureInfo.InvariantCulture))
629
.Append(quadraticBezierSegment.Point1.
Y
.ToString(CultureInfo.InvariantCulture))
633
.Append(quadraticBezierSegment.Point2.
Y
.ToString(CultureInfo.InvariantCulture))
651
.Append(arcSegment.Point.
Y
.ToString(CultureInfo.InvariantCulture))
Shapes\PathGeometry.cs (14)
70
float startPointY = (float)figure.StartPoint.
Y
;
116
(float)points[i].
Y
);
124
(float)(lineSegment.Point.
Y
));
132
(float)(p.
Y
));
138
(float)(bezierSegment.Point1.X), (float)(bezierSegment.Point1.
Y
),
139
(float)(bezierSegment.Point2.X), (float)(bezierSegment.Point2.
Y
),
140
(float)(bezierSegment.Point3.X), (float)(bezierSegment.Point3.
Y
));
150
var pt1 = new PointF((float)(polyBezierSegment.Points[bez].X), (float)(polyBezierSegment.Points[bez].
Y
));
151
var pt2 = new PointF((float)(polyBezierSegment.Points[bez + 1].X), (float)(polyBezierSegment.Points[bez + 1].
Y
));
152
var pt3 = new PointF((float)(polyBezierSegment.Points[bez + 2].X), (float)(polyBezierSegment.Points[bez + 2].
Y
));
161
(float)(quadraticBezierSegment.Point1.X), (float)(quadraticBezierSegment.Point1.
Y
),
162
(float)(quadraticBezierSegment.Point2.X), (float)(quadraticBezierSegment.Point2.
Y
));
176
var pt1 = new PointF((float)(points[i].X), (float)(points[i].
Y
));
177
var pt2 = new PointF((float)(points[i + 1].X), (float)(points[i + 1].
Y
));
Shapes\Polygon.cs (2)
59
path.MoveTo((float)Points[0].X, (float)Points[0].
Y
);
62
path.LineTo((float)Points[index].X, (float)Points[index].
Y
);
Shapes\Polyline.cs (2)
58
path.MoveTo((float)Points[0].X, (float)Points[0].
Y
);
61
path.LineTo((float)Points[index].X, (float)Points[index].
Y
);
Shapes\RoundRectangleGeometry.cs (12)
76
new EllipseGeometry(new Point(Rect.Location.X + CornerRadius.TopLeft, Rect.Location.
Y
+ CornerRadius.TopLeft), CornerRadius.TopLeft, CornerRadius.TopLeft));
80
new EllipseGeometry(new Point(Rect.Location.X + Rect.Width - CornerRadius.TopRight, Rect.Location.
Y
+ CornerRadius.TopRight), CornerRadius.TopRight, CornerRadius.TopRight));
84
new EllipseGeometry(new Point(Rect.Location.X + Rect.Width - CornerRadius.BottomRight, Rect.Location.
Y
+ Rect.Height - CornerRadius.BottomRight), CornerRadius.BottomRight, CornerRadius.BottomRight));
88
new EllipseGeometry(new Point(Rect.Location.X + CornerRadius.BottomLeft, Rect.Location.
Y
+ Rect.Height - CornerRadius.BottomLeft), CornerRadius.BottomLeft, CornerRadius.BottomLeft));
93
StartPoint = new Point(Rect.Location.X + CornerRadius.TopLeft, Rect.Location.
Y
),
96
new LineSegment { Point = new Point(Rect.Location.X + Rect.Width - CornerRadius.TopRight, Rect.Location.
Y
) },
97
new LineSegment { Point = new Point(Rect.Location.X + Rect.Width, Rect.Location.
Y
+ CornerRadius.TopRight) },
98
new LineSegment { Point = new Point(Rect.Location.X + Rect.Width, Rect.Location.
Y
+ Rect.Height - CornerRadius.BottomRight) },
99
new LineSegment { Point = new Point(Rect.Location.X + Rect.Width - CornerRadius.BottomRight, Rect.Location.
Y
+ Rect.Height) },
100
new LineSegment { Point = new Point(Rect.Location.X + CornerRadius.BottomLeft, Rect.Location.
Y
+ Rect.Height) },
101
new LineSegment { Point = new Point(Rect.Location.X, Rect.Location.
Y
+ Rect.Height - CornerRadius.BottomLeft) },
102
new LineSegment { Point = new Point(Rect.Location.X, Rect.Location.
Y
+ CornerRadius.TopLeft) }
Shapes\StrokeShapeTypeConverter.cs (3)
55
return new Line { X1 = p1.X, Y1 = p1.
Y
};
59
return new Line { X1 = p1.X, Y1 = p1.
Y
, X2 = p2.X, Y2 = p2.
Y
};
Microsoft.Maui.Controls.Build.Tasks (4)
CompiledConverters\PointTypeConverter.cs (1)
29
yield return Instruction.Create(OpCodes.Ldc_R8, point.
Y
);
CompiledConverters\StrokeShapeTypeConverter.cs (3)
53
yield return Instruction.Create(OpCodes.Ldc_R8, p1.
Y
);
67
yield return Instruction.Create(OpCodes.Ldc_R8, p1.
Y
);
69
yield return Instruction.Create(OpCodes.Ldc_R8, p2.
Y
);
Microsoft.Maui.Controls.Compatibility (15)
iOS\Extensions\CompatibilityColorExtensions.cs (1)
49
return new PointF(point.X, point.
Y
);
iOS\Extensions\GeometryExtensions.cs (5)
48
ellipseGeometry.Center.
Y
- ellipseGeometry.RadiusY,
141
new nfloat(bezierSegment.Point1.
Y
),
143
new nfloat(bezierSegment.Point2.
Y
));
160
new nfloat(points[i + 0].
Y
),
162
new nfloat(points[i + 1].
Y
));
iOS\Extensions\PointCollectionExtensions.cs (1)
26
points[i] = new CGPoint(array[i].X, array[i].
Y
);
iOS\Renderers\ScrollViewRenderer.cs (3)
282
positionOnScroll.Y = positionOnScroll.
Y
.Clamp(0, ContentSize.Height);
290
newOffset = new PointF(ContentOffset.X, (nfloat)positionOnScroll.
Y
);
293
newOffset = new PointF((nfloat)positionOnScroll.X, (nfloat)positionOnScroll.
Y
);
iOS\Shapes\ShapeRenderer.cs (4)
563
new CGPoint(pathBounds.Left + linearGradientBrush.StartPoint.X * pathBounds.Width, pathBounds.Top + linearGradientBrush.StartPoint.
Y
* pathBounds.Height),
564
new CGPoint(pathBounds.Left + linearGradientBrush.EndPoint.X * pathBounds.Width, pathBounds.Top + linearGradientBrush.EndPoint.
Y
* pathBounds.Height),
572
new CGPoint(radialGradientBrush.Center.X * pathBounds.Width + pathBounds.Left, radialGradientBrush.Center.
Y
* pathBounds.Height + pathBounds.Top),
574
new CGPoint(radialGradientBrush.Center.X * pathBounds.Width + pathBounds.Left, radialGradientBrush.Center.
Y
* pathBounds.Height + pathBounds.Top),
iOS\VisualElementTracker.cs (1)
212
var y = (float)view.Y + (float)CompressedLayout.GetHeadlessOffset(view).
Y
;
Microsoft.Maui.Graphics (28)
CanvasExtensions.cs (4)
192
var y = center.
Y
- radius;
219
var y = center.
Y
- radius;
380
target.SetFillPaint(paint, new RectF((float)point1.X, (float)point1.
Y
, (float)point2.X, (float)point2.
Y
));
Converters\PointTypeConverter.cs (1)
55
return $"{p.X.ToString(CultureInfo.InvariantCulture)}, {p.
Y
.ToString(CultureInfo.InvariantCulture)}";
Point.cs (19)
21
return $"{{X={X.ToString(CultureInfo.InvariantCulture)} Y={
Y
.ToString(CultureInfo.InvariantCulture)}}}";
62
return Math.Abs(compareTo.X - X) < epsilon && Math.Abs(compareTo.
Y
-
Y
) < epsilon;
67
return X.GetHashCode() ^ (
Y
.GetHashCode() * 397);
80
return new Point((double)Math.Round(X), (double)Math.Round(
Y
));
83
public bool IsEmpty => X == 0 &&
Y
== 0;
87
return new Size(pt.X, pt.
Y
);
92
return new Point(pt.X + sz.Width, pt.
Y
+ sz.Height);
97
return new Size(ptA.X - ptB.X, ptA.
Y
- ptB.
Y
);
102
return new Point(pt.X - sz.Width, pt.
Y
- sz.Height);
107
return ptA.X == ptB.X && ptA.
Y
== ptB.
Y
;
112
return ptA.X != ptB.X || ptA.
Y
!= ptB.
Y
;
117
return (double)Math.Sqrt(Math.Pow(X - other.X, 2) + Math.Pow(
Y
- other.
Y
, 2));
123
y =
Y
;
126
public static implicit operator PointF(Point p) => new PointF((float)p.X, (float)p.
Y
);
Rect.cs (4)
36
public Rect(Point loc, Size sz) : this(loc.X, loc.
Y
, sz.Width, sz.Height)
87
return Contains(pt.X, pt.
Y
);
172
Y = value.
Y
;
204
return Offset(dr.X, dr.
Y
);
Microsoft.Maui.Graphics.Skia (3)
SkiaCanvas.cs (3)
243
float y1 = (float)(linearGradientPaint.StartPoint.
Y
* rectangle.Height) + rectangle.Y;
246
float y2 = (float)(linearGradientPaint.EndPoint.
Y
* rectangle.Height) + rectangle.Y;
290
float centerY = (float)(radialGradientPaint.Center.
Y
* rectangle.Height) + rectangle.Y;
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (3)
470
float y1 = (float)(linearGradientPaint.StartPoint.
Y
* rectangle.Height) + rectangle.Y;
473
float y2 = (float)(linearGradientPaint.EndPoint.
Y
* rectangle.Height) + rectangle.Y;
485
float centerY = (float)(radialGradientPaint.Center.
Y
* rectangle.Height) + rectangle.Y;