6 instantiations of Matrix3x2
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Maui.Controls (1)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\MatrixTests.Core.cs (2)
14Matrix3x2 matrix3X2 = new(m11, m12, m21, m22, dx, dy);
28Matrix3x2 matrix3X2 = new(m11, m12, m21, m22, dx, dy);
230 references to Matrix3x2
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Maui (2)
Microsoft.Maui.Controls (2)
Microsoft.Maui.Graphics (47)
Matrix3x2Extensions.cs (21)
12 public static bool IsZero(this in Matrix3x2 matrix)
29 public static bool IsFinite(this in Matrix3x2 matrix)
51 public static Vector2 GetScale(this in Matrix3x2 matrix)
60 public static float GetRotation(this in Matrix3x2 matrix)
65 public static Vector2 GetTranslation(this in Matrix3x2 matrix)
70 public static Matrix3x2 WithScale(this Matrix3x2 matrix, Vector2 scale)
89 public static Matrix3x2 WithoutScale(this in Matrix3x2 matrix)
94 public static Matrix3x2 WithRotation(this in Matrix3x2 matrix, float radians)
101 public static Matrix3x2 WithoutRotation(this in Matrix3x2 matrix)
108 public static Matrix3x2 WithTranslation(this Matrix3x2 matrix, Vector2 translation)
129 internal static Matrix3x2 CreateMatrix3x2(Vector2 scale, float rotation, Vector2 translation)
131 var m = Matrix3x2.CreateRotation(rotation);
141 public static float GetLengthScale(this in Matrix3x2 matrix)
148 public static void CopyTo(this in Matrix3x2 matrix, float[] dst, int offset = 0, int count = 6)
163 public static void DeconstructScales(this in Matrix3x2 value, out float scale, out float scalex, out float scaley)
Microsoft.Maui.Graphics.Skia (2)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (27)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (13)
71 static Matrix3x2 Scale(this Matrix3x2 target, float sx, float sy)
73 return Matrix3x2.Multiply(Matrix3x2.CreateScale(sx, sy), target);
84 static Matrix3x2 Translate(this Matrix3x2 target, float dx, float dy)
86 return Matrix3x2.Multiply(Matrix3x2.CreateTranslation(dx, dy), target);
97 static Matrix3x2 Rotate(this Matrix3x2 target, float radians)
99 Matrix3x2 vMatrix = Matrix3x2.Multiply(Matrix3x2.CreateRotation(radians), target);
netstandard (1)
System.Drawing.Common.Tests (14)
System\Drawing\Drawing2D\MatrixTests.Core.cs (2)
14Matrix3x2 matrix3X2 = new(m11, m12, m21, m22, dx, dy);
28Matrix3x2 matrix3X2 = new(m11, m12, m21, m22, dx, dy);
System.Numerics (1)
System.Numerics.Vectors (1)
System.Private.CoreLib (95)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (81)
14public partial struct Matrix3x2 : IEquatable<Matrix3x2>
53/// <summary>Initializes a <see cref="Matrix3x2"/> using the specified elements.</summary>
73public static Matrix3x2 Identity
332/// <remarks>The <see cref="op_Addition" /> method defines the operation of the addition operator for <see cref="Matrix3x2" /> objects.</remarks>
334public static Matrix3x2 operator +(Matrix3x2 value1, Matrix3x2 value2)
343public static bool operator ==(Matrix3x2 value1, Matrix3x2 value2)
351public static bool operator !=(Matrix3x2 value1, Matrix3x2 value2)
358/// <remarks>The <see cref="Matrix3x2.op_Multiply" /> method defines the operation of the multiplication operator for <see cref="Matrix3x2" /> objects.</remarks>
359public static Matrix3x2 operator *(Matrix3x2 value1, Matrix3x2 value2)
366/// <remarks>The <see cref="Matrix3x2.op_Multiply" /> method defines the operation of the multiplication operator for <see cref="Matrix3x2" /> objects.</remarks>
368public static Matrix3x2 operator *(Matrix3x2 value1, float value2)
375/// <remarks>The <see cref="Subtract" /> method defines the operation of the subtraction operator for <see cref="Matrix3x2" /> objects.</remarks>
377public static Matrix3x2 operator -(Matrix3x2 value1, Matrix3x2 value2)
383/// <altmember cref="Negate(Matrix3x2)" />
385public static Matrix3x2 operator -(Matrix3x2 value)
393public static Matrix3x2 Add(Matrix3x2 value1, Matrix3x2 value2)
396/// <summary>Creates a <see cref="Matrix3x2" /> whose 6 elements are set to the specified value.</summary>
398/// <returns>A <see cref="Matrix3x2" /> whose 6 elements are set to <paramref name="value" />.</returns>
400public static Matrix3x2 Create(float value) => Create(Vector2.Create(value));
402/// <summary>Creates a <see cref="Matrix3x2" /> whose 3 rows are set to the specified value.</summary>
404/// <returns>A <see cref="Matrix3x2" /> whose 3 rows are set to <paramref name="value" />.</returns>
406public static Matrix3x2 Create(Vector2 value) => Create(value, value, value);
408/// <summary>Creates a <see cref="Matrix3x2" /> from the specified rows.</summary>
412/// <returns>A <see cref="Matrix3x2" /> whose rows are set to the specified values.</returns>
414public static Matrix3x2 Create(Vector2 x, Vector2 y, Vector2 z)
416Unsafe.SkipInit(out Matrix3x2 result);
425/// <summary>Creates a <see cref="Matrix3x2" /> from the specified elements.</summary>
432/// <returns>A <see cref="Matrix3x2" /> whose elements are set to the specified values.</returns>
434public static Matrix3x2 Create(float m11, float m12,
445public static Matrix3x2 CreateRotation(float radians)
452public static Matrix3x2 CreateRotation(float radians, Vector2 centerPoint)
458public static Matrix3x2 CreateScale(Vector2 scales)
465public static Matrix3x2 CreateScale(float xScale, float yScale)
473public static Matrix3x2 CreateScale(float xScale, float yScale, Vector2 centerPoint)
480public static Matrix3x2 CreateScale(Vector2 scales, Vector2 centerPoint)
486public static Matrix3x2 CreateScale(float scale)
493public static Matrix3x2 CreateScale(float scale, Vector2 centerPoint)
500public static Matrix3x2 CreateSkew(float radiansX, float radiansY)
508public static Matrix3x2 CreateSkew(float radiansX, float radiansY, Vector2 centerPoint)
514public static Matrix3x2 CreateTranslation(Vector2 position)
521public static Matrix3x2 CreateTranslation(float xPosition, float yPosition)
528public static bool Invert(Matrix3x2 matrix, out Matrix3x2 result)
540public static Matrix3x2 Lerp(Matrix3x2 matrix1, Matrix3x2 matrix2, float amount)
548public static Matrix3x2 Multiply(Matrix3x2 value1, Matrix3x2 value2)
556public static Matrix3x2 Multiply(Matrix3x2 value1, float value2)
563public static Matrix3x2 Negate(Matrix3x2 value)
571public static Matrix3x2 Subtract(Matrix3x2 value1, Matrix3x2 value2)
577/// <remarks>The current instance and <paramref name="obj" /> are equal if <paramref name="obj" /> is a <see cref="Matrix3x2" /> object and the corresponding elements of each matrix are equal.</remarks>
582/// <summary>Returns a value that indicates whether this instance and another <see cref="Matrix3x2" /> are equal.</summary>
587public readonly bool Equals(Matrix3x2 other)
628/// <summary>Creates a new <see cref="Matrix3x2"/> with the element at the specified row and column set to the given value and the remaining elements set to the same value as that in the current matrix.</summary>
632/// <returns>A <see cref="Matrix3x2" /> with the value of the element at index: [<paramref name="row"/>, <paramref name="column"/>] set to <paramref name="value" /> and the remaining elements set to the same value as that in the current matrix.</returns>
639public readonly Matrix3x2 WithElement(int row, int column, float value)
641Matrix3x2 result = this;
646/// <summary>Creates a new <see cref="Matrix3x2"/> with the row at the specified index set to the given value and the remaining rows set to the same value as that in the current matrix.</summary>
649/// <returns>A <see cref="Matrix3x2" /> with the value of the row at index: [<paramref name="index"/>] set to <paramref name="value" /> and the remaining rows set to the same value as that in the current matrix.</returns>
652public readonly Matrix3x2 WithRow(int index, Vector2 value)
654Matrix3x2 result = this;
System.Windows.Forms (1)
System.Windows.Forms.Primitives.TestUtilities (12)
System.Windows.Forms.Tests (24)