29 references to Vector2
Microsoft.Maui.Graphics (11)
Matrix3x2Extensions.cs (8)
53
var sx = matrix.M12 == 0 ? Math.Abs(matrix.M11) : new
Vector2
(matrix.M11, matrix.M12).Length();
54
var sy = matrix.M21 == 0 ? Math.Abs(matrix.M22) : new
Vector2
(matrix.M21, matrix.M22).Length();
57
return new
Vector2
(sx, sy);
72
var sx = matrix.M12 == 0 ? Math.Abs(matrix.M11) : new
Vector2
(matrix.M11, matrix.M12).Length();
73
var sy = matrix.M21 == 0 ? Math.Abs(matrix.M22) : new
Vector2
(matrix.M21, matrix.M22).Length();
76
scale /= new
Vector2
(sx, sy);
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();
PathF.cs (1)
1607
return new
Vector2
(point.X, point.Y);
PointF.cs (1)
128
public static explicit operator Vector2(PointF p) => new
Vector2
(p.X, p.Y);
SizeF.cs (1)
83
return new
Vector2
(size.Width, size.Height);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (15)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (12)
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));
226
new
Vector2
(endPoint.X, endPoint.Y),
293
new
Vector2
(controlPoint.X * scale, controlPoint.Y * scale),
294
new
Vector2
(endPoint.X * scale, endPoint.Y * scale));
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));
344
new
Vector2
(endPoint.X, endPoint.Y),
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (2)
198
new
Vector2
(_point2.X, _point2.Y),
586
new
Vector2
(_point2.X, _point2.Y),
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (1)
405
ShadowOffset = new
Vector2
(offset.Width, offset.Height);
System.Drawing.Common.Tests (1)
System\Drawing\GraphicsTests.Core.cs (1)
11
private static Matrix3x2 s_testMatrix = Matrix3x2.CreateRotation(45) * Matrix3x2.CreateScale(2) * Matrix3x2.CreateTranslation(new
Vector2
(10, 20));
System.Drawing.Primitives (2)
System\Drawing\PointF.cs (1)
47
public Vector2 ToVector2() => new
Vector2
(x, y);
System\Drawing\SizeF.cs (1)
58
public Vector2 ToVector2() => new
Vector2
(width, height);