12 writes to X
Microsoft.Maui.Graphics (6)
ArcFlattener.cs (1)
55
point.
X
= _cx + (point.X * _fx);
GeometryUtil.cs (1)
118
point.
X
+= cx;
PointF.cs (4)
26
X
= x;
32
X
= sz.Width;
38
X
= v.X;
67
p.
X
+= dx;
Microsoft.Maui.Graphics.Skia (6)
SkiaTextLayout.cs (6)
134
point.
X
= x + width / 2;
137
point.
X
= x + width;
165
point.
X
= x + width / 2;
168
point.
X
= x + width;
194
point.
X
= x + width / 2;
197
point.
X
= x + width;
140 references to X
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)
55
point.X = _cx + (point.
X
* _fx);
74
var x = (point1.
X
+ point2.
X
) / 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);
200
var x = center.
X
- radius;
227
var x = center.
X
- 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);
125
var dx = oppositePoint.
X
- pivot.
X
;
127
return new PointF(pivot.
X
- dx, pivot.Y - dy);
PathBuilder.cs (8)
551
var dx = lastPoint.
X
- lastCurveControlPoint.
X
;
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);
658
point = new PointF(((PointF)_relativePoint).
X
, y);
678
point = new PointF(((PointF)_relativePoint).
X
+ x, ((PointF)_relativePoint).Y);
PathExtensions.cs (1)
55
float x = point.
X
* 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);
1430
l = path[0].
X
;
1438
if (point.
X
< l)
1439
l = point.
X
;
1442
if (point.
X
> r)
1443
r = point.
X
;
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));
121
x =
X
;
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);
172
X = value.
X
;
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),
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);
288
controlPoint1.
X
* ppu,
290
endPoint.
X
* ppu,
299
controlPoint1.
X
* ppu,
301
controlPoint2.
X
* ppu,
303
endPoint.
X
* 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));
205
var rectX = ox + topLeft.
X
* fx;
207
var rectWidth = (ox + bottomRight.
X
* fx) - rectX;
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));
333
var rectX = topLeft.
X
* scale;
335
var rectWidth = (bottomRight.
X
* scale) - rectX;
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)
189
_point1.X = startPoint.
X
;
192
_point2.X = endPoint.
X
;
577
_point1.X = startPoint.
X
;
580
_point2.X = endPoint.
X
;