6 writes to Y
Microsoft.Maui.Graphics (6)
ArcFlattener.cs (1)
56
point.
Y
= _cy + (point.Y * _fy);
GeometryUtil.cs (1)
119
point.
Y
+= cy;
PointF.cs (4)
27
Y
= y;
33
Y
= sz.Height;
39
Y
= v.Y;
68
p.
Y
+= dy;
140 references to Y
Microsoft.Maui (2)
Animations\AnimationLerpingExtensions.cs (2)
24
new PointF(start.X.Lerp(end.X, progress), start.
Y
.Lerp(end.
Y
, progress));
Microsoft.Maui.Graphics (78)
ArcFlattener.cs (5)
56
point.Y = _cy + (point.
Y
* _fy);
75
var y = (point1.
Y
+ point2.
Y
) / 2;
92
if (GeometryUtil.GetDistance(midPointOnArc.X, midPointOnArc.
Y
, midPointOnLine.X, midPointOnLine.
Y
) <= flatness)
CanvasExtensions.cs (6)
7
target.DrawLine(point1.X, point1.
Y
, point2.X, point2.
Y
);
201
var y = center.
Y
- radius;
228
var y = center.
Y
- radius;
385
target.SetFillPaint(paint, new RectF(point1.X, point1.
Y
, point2.X, point2.
Y
));
Converters\PointFTypeConverter.cs (1)
56
return $"{p.X.ToString(CultureInfo.InvariantCulture)}, {p.
Y
.ToString(CultureInfo.InvariantCulture)}";
GeometryUtil.cs (10)
52
var x = MathF.Cos(radians) * point.X - MathF.Sin(radians) * point.
Y
;
53
var y = MathF.Sin(radians) * point.X + MathF.Cos(radians) * point.
Y
;
61
var x = center.X + MathF.Cos(radians) * (point.X - center.X) - MathF.Sin(radians) * (point.
Y
- center.
Y
);
62
var y = center.
Y
+ MathF.Sin(radians) * (point.X - center.X) + MathF.Cos(radians) * (point.
Y
- center.
Y
);
126
var dy = oppositePoint.
Y
- pivot.
Y
;
127
return new PointF(pivot.X - dx, pivot.
Y
- dy);
PathBuilder.cs (8)
552
var dy = lastPoint.
Y
- lastCurveControlPoint.
Y
;
596
arcPath.SVGArcTo(rx, ry, r, largeArcFlag, sweepFlag, endPoint.X, endPoint.
Y
, startPoint.X, startPoint.
Y
);
630
point = new PointF(((PointF)_relativePoint).X + x, ((PointF)_relativePoint).
Y
+ y);
654
point = new PointF(((PointF)_relativePoint).X, ((PointF)_relativePoint).
Y
+ y);
678
point = new PointF(((PointF)_relativePoint).X + x, ((PointF)_relativePoint).
Y
);
682
point = new PointF(x, ((PointF)_relativePoint).
Y
);
PathExtensions.cs (1)
56
float y = point.
Y
* ppu;
PathF.cs (23)
61
MoveTo(point.X, point.
Y
);
891
path.LineTo(rotatedPoint.X, rotatedPoint.
Y
);
897
path.QuadTo(rotatedControlPoint.X, rotatedControlPoint.
Y
, rotatedEndPoint.X, rotatedEndPoint.
Y
);
904
path.CurveTo(rotatedControlPoint1.X, rotatedControlPoint1.
Y
, rotatedControlPoint2.X, rotatedControlPoint2.
Y
, rotatedEndPoint.X, rotatedEndPoint.
Y
);
1057
AppendCircle(center.X, center.
Y
, r);
1431
t = path[0].
Y
;
1440
if (point.
Y
< t)
1441
t = point.
Y
;
1444
if (point.
Y
> b)
1445
b = point.
Y
;
1520
var arcFlattener = new ArcFlattener(topLeft.X, topLeft.
Y
, bottomRight.X - topLeft.X, bottomRight.
Y
- topLeft.
Y
, startAngle, endAngle, clockwise);
1531
var controlPoint1 = new PointF(startPoint.X + 2.0f * (quadControlPoint.X - startPoint.X) / 3.0f, startPoint.
Y
+ 2.0f * (quadControlPoint.
Y
- startPoint.
Y
) / 3.0f);
1532
var controlPoint2 = new PointF(endPoint.X + 2.0f * (quadControlPoint.X - endPoint.X) / 3.0f, endPoint.
Y
+ 2.0f * (quadControlPoint.
Y
- endPoint.
Y
) / 3.0f);
1607
return new Vector2(point.X, point.
Y
);
PointF.cs (20)
21
return $"{{X={X.ToString(CultureInfo.InvariantCulture)} Y={
Y
.ToString(CultureInfo.InvariantCulture)}}}";
56
return Math.Abs(compareTo.X - X) < epsilon && Math.Abs(compareTo.
Y
-
Y
) < epsilon;
61
return X.GetHashCode() ^ (
Y
.GetHashCode() * 397);
79
return new PointF(MathF.Round(X), MathF.Round(
Y
));
82
public bool IsEmpty => X == 0 &&
Y
== 0;
86
return new SizeF(pt.X, pt.
Y
);
91
return new PointF(pt.X + sz.Width, pt.
Y
+ sz.Height);
96
return new SizeF(ptA.X - ptB.X, ptA.
Y
- ptB.
Y
);
101
return new PointF(pt.X - sz.Width, pt.
Y
- sz.Height);
106
return ptA.X == ptB.X && ptA.
Y
== ptB.
Y
;
111
return ptA.X != ptB.X || ptA.
Y
!= ptB.
Y
;
116
return MathF.Sqrt(MathF.Pow(X - other.X, 2) + MathF.Pow(
Y
- other.
Y
, 2));
122
y =
Y
;
124
public static implicit operator Point(PointF p) => new Point(p.X, p.
Y
);
128
public static explicit operator Vector2(PointF p) => new Vector2(p.X, p.
Y
);
RectF.cs (4)
37
public RectF(PointF loc, SizeF sz) : this(loc.X, loc.
Y
, sz.Width, sz.Height)
88
return Contains(pt.X, pt.
Y
);
173
Y = value.
Y
;
205
return Offset(dr.X, dr.
Y
);
Microsoft.Maui.Graphics.Skia (31)
SKGraphicsExtensions.cs (30)
76
return new SKPoint(target.X, target.
Y
);
128
platformPath.MoveTo((ox + point.X * ppux), (oy + point.
Y
* ppuy));
133
platformPath.LineTo((ox + point.X * ppux), (oy + point.
Y
* ppuy));
140
platformPath.QuadTo((ox + controlPoint.X * ppux), (oy + controlPoint.
Y
* ppuy), (ox + point.X * ppux), (oy + point.
Y
* ppuy));
147
platformPath.CubicTo((ox + controlPoint1.X * ppux), (oy + controlPoint1.
Y
* ppuy), (ox + controlPoint2.X * ppux), (oy + controlPoint2.
Y
* ppuy), (ox + point.X * ppux),
148
(oy + point.
Y
* ppuy));
168
var rect = new SKRect(topLeft.X, topLeft.
Y
, bottomRight.X, bottomRight.
Y
);
202
path.MoveTo(startPoint.X * ppu, startPoint.
Y
* ppu);
205
path.LineTo(endPoint.X * ppu, endPoint.
Y
* ppu);
211
path.MoveTo(startPoint.X * ppu, startPoint.
Y
* ppu);
215
path.QuadTo(controlPoint.X * ppu, controlPoint.
Y
* ppu, endPoint.X * ppu, endPoint.
Y
* ppu);
221
path.MoveTo(startPoint.X * ppu, startPoint.
Y
* ppu);
226
path.CubicTo(controlPoint1.X * ppu, controlPoint1.
Y
* ppu, controlPoint2.X * ppu, controlPoint2.
Y
* ppu, endPoint.X * ppu, endPoint.
Y
* ppu);
248
var rect = new SKRect(topLeft.X, topLeft.
Y
, bottomRight.X, bottomRight.
Y
);
276
path.MoveTo(point.X * ppu, point.
Y
* ppu);
281
path.LineTo(endPoint.X * ppu, endPoint.
Y
* ppu);
289
controlPoint1.
Y
* ppu,
291
endPoint.
Y
* ppu);
300
controlPoint1.
Y
* ppu,
302
controlPoint2.
Y
* ppu,
304
endPoint.
Y
* ppu);
324
var rect = new SKRect(topLeft.X, topLeft.
Y
, bottomRight.X, bottomRight.
Y
);
SkiaCanvas.cs (1)
677
_canvas.DrawText(text, point.X, point.
Y
, CurrentState.FontPaint);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (29)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (25)
156
builder.BeginFigure(ox + point.X * fx, oy + point.
Y
* fy, begin);
162
builder.AddLine(ox + point.X * fx, oy + point.
Y
* fy);
171
new Vector2(ox + controlPoint.X * fx, oy + controlPoint.
Y
* fy),
172
new Vector2(ox + endPoint.X * fx, oy + endPoint.
Y
* fy));
180
new Vector2(ox + controlPoint1.X * fx, oy + controlPoint1.
Y
* fy),
181
new Vector2(ox + controlPoint2.X * fx, oy + controlPoint2.
Y
* fy),
182
new Vector2(ox + endPoint.X * fx, oy + endPoint.
Y
* fy));
206
var rectY = oy + topLeft.
Y
* fy;
208
var rectHeight = (oy + bottomRight.
Y
* fy) - rectY;
217
builder.BeginFigure(startPoint.X, startPoint.
Y
, begin);
222
builder.AddLine(startPoint.X, startPoint.
Y
);
226
new Vector2(endPoint.X, endPoint.
Y
),
279
builder.BeginFigure(startPoint.X * scale, startPoint.
Y
* scale, CanvasFigureFill.Default);
282
builder.AddLine(point.X * scale, point.
Y
* scale);
288
builder.BeginFigure(startPoint.X * scale, startPoint.
Y
* scale, CanvasFigureFill.Default);
293
new Vector2(controlPoint.X * scale, controlPoint.
Y
* scale),
294
new Vector2(endPoint.X * scale, endPoint.
Y
* scale));
300
builder.BeginFigure(startPoint.X * scale, startPoint.
Y
* scale, CanvasFigureFill.Default);
306
new Vector2(controlPoint1.X * scale, controlPoint1.
Y
* scale),
307
new Vector2(controlPoint2.X * scale, controlPoint2.
Y
* scale),
308
new Vector2(endPoint.X * scale, endPoint.
Y
* scale));
334
var rectY = topLeft.
Y
* scale;
336
var rectHeight = (bottomRight.
Y
* scale) - rectY;
341
builder.BeginFigure(startPoint.X * scale, startPoint.
Y
* scale, CanvasFigureFill.Default);
344
new Vector2(endPoint.X, endPoint.
Y
),
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (4)
190
_point1.Y = startPoint.
Y
;
193
_point2.Y = endPoint.
Y
;
578
_point1.Y = startPoint.
Y
;
581
_point2.Y = endPoint.
Y
;