2 instantiations of Matrix4x4
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
103P13 = new Matrix4x4(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16),
Microsoft.Maui (1)
Platform\Standard\ViewExtensions.cs (1)
70 internal static System.Numerics.Matrix4x4 GetViewTransform(this IView view) => new System.Numerics.Matrix4x4();
124 references to Matrix4x4
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
30public Matrix4x4 P13 { get; set; }
Microsoft.Maui (7)
Platform\Standard\ViewExtensions.cs (1)
70 internal static System.Numerics.Matrix4x4 GetViewTransform(this IView view) => new System.Numerics.Matrix4x4();
Platform\ViewExtensions.cs (4)
34 internal static Vector3 ExtractPosition(this Matrix4x4 matrix) => matrix.Translation; 36 internal static Vector3 ExtractScale(this Matrix4x4 matrix) => new Vector3(matrix.M11, matrix.M22, matrix.M33); 38 internal static double ExtractAngleInRadians(this Matrix4x4 matrix) => Math.Atan2(matrix.M21, matrix.M11); 40 internal static double ExtractAngleInDegrees(this Matrix4x4 matrix) => ExtractAngleInRadians(matrix) * 180 / Math.PI;
VisualDiagnostics\AdornerModel.cs (1)
19 public void Update(Rect rect, Thickness margin, Matrix4x4 transformToRoot, double density)
VisualDiagnostics\RectangleAdorner.cs (1)
87 Matrix4x4 transform = VisualView.GetViewTransform();
netstandard (1)
netstandard.cs (1)
1334[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Matrix4x4))]
System.Numerics (1)
System.Numerics.cs (1)
7[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Matrix4x4))]
System.Numerics.Vectors (1)
artifacts\obj\System.Numerics.Vectors\Debug\net10.0\System.Numerics.Vectors.Forwards.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Matrix4x4))]
System.Private.CoreLib (113)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (91)
14public partial struct Matrix4x4 : IEquatable<Matrix4x4> 106/// <summary>Creates a <see cref="Matrix4x4" /> object from a specified <see cref="Matrix3x2" /> object.</summary> 117public static Matrix4x4 Identity 164/// <remarks>The <see cref="op_Addition" /> method defines the operation of the addition operator for <see cref="Matrix4x4" /> objects.</remarks> 166public static Matrix4x4 operator +(Matrix4x4 value1, Matrix4x4 value2) 175public static bool operator ==(Matrix4x4 value1, Matrix4x4 value2) 183public static bool operator !=(Matrix4x4 value1, Matrix4x4 value2) 190/// <remarks>The <see cref="Matrix4x4.op_Multiply" /> method defines the operation of the multiplication operator for <see cref="Matrix4x4" /> objects.</remarks> 191public static Matrix4x4 operator *(Matrix4x4 value1, Matrix4x4 value2) 198/// <remarks>The <see cref="Matrix4x4.op_Multiply" /> method defines the operation of the multiplication operator for <see cref="Matrix4x4" /> objects.</remarks> 200public static Matrix4x4 operator *(Matrix4x4 value1, float value2) 207/// <remarks>The <see cref="op_Subtraction" /> method defines the operation of the subtraction operator for <see cref="Matrix4x4" /> objects.</remarks> 209public static Matrix4x4 operator -(Matrix4x4 value1, Matrix4x4 value2) 216public static Matrix4x4 operator -(Matrix4x4 value) 224public static Matrix4x4 Add(Matrix4x4 value1, Matrix4x4 value2) 233public static Matrix4x4 CreateBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector) 242public static Matrix4x4 CreateBillboardLeftHanded(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector) 252public static Matrix4x4 CreateConstrainedBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector) 262public static Matrix4x4 CreateConstrainedBillboardLeftHanded(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector) 269public static Matrix4x4 CreateFromAxisAngle(Vector3 axis, float angle) 275public static Matrix4x4 CreateFromQuaternion(Quaternion quaternion) 283public static Matrix4x4 CreateFromYawPitchRoll(float yaw, float pitch, float roll) 291public static Matrix4x4 CreateLookAt(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector) 302public static Matrix4x4 CreateLookAtLeftHanded(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector) 313public static Matrix4x4 CreateLookTo(Vector3 cameraPosition, Vector3 cameraDirection, Vector3 cameraUpVector) 321public static Matrix4x4 CreateLookToLeftHanded(Vector3 cameraPosition, Vector3 cameraDirection, Vector3 cameraUpVector) 332public static Matrix4x4 CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane) 341public static Matrix4x4 CreateOrthographicLeftHanded(float width, float height, float zNearPlane, float zFarPlane) 352public static Matrix4x4 CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane) 363public static Matrix4x4 CreateOrthographicOffCenterLeftHanded(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane) 377public static Matrix4x4 CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance) 391public static Matrix4x4 CreatePerspectiveLeftHanded(float width, float height, float nearPlaneDistance, float farPlaneDistance) 408public static Matrix4x4 CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance) 425public static Matrix4x4 CreatePerspectiveFieldOfViewLeftHanded(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance) 441public static Matrix4x4 CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance) 457public static Matrix4x4 CreatePerspectiveOffCenterLeftHanded(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance) 463public static Matrix4x4 CreateReflection(Plane value) 469public static Matrix4x4 CreateRotationX(float radians) 476public static Matrix4x4 CreateRotationX(float radians, Vector3 centerPoint) 482public static Matrix4x4 CreateRotationY(float radians) 489public static Matrix4x4 CreateRotationY(float radians, Vector3 centerPoint) 495public static Matrix4x4 CreateRotationZ(float radians) 502public static Matrix4x4 CreateRotationZ(float radians, Vector3 centerPoint) 510public static Matrix4x4 CreateScale(float xScale, float yScale, float zScale) 519public static Matrix4x4 CreateScale(float xScale, float yScale, float zScale, Vector3 centerPoint) 525public static Matrix4x4 CreateScale(Vector3 scales) 532public static Matrix4x4 CreateScale(Vector3 scales, Vector3 centerPoint) 538public static Matrix4x4 CreateScale(float scale) 545public static Matrix4x4 CreateScale(float scale, Vector3 centerPoint) 552public static Matrix4x4 CreateShadow(Vector3 lightDirection, Plane plane) 558public static Matrix4x4 CreateTranslation(Vector3 position) 566public static Matrix4x4 CreateTranslation(float xPosition, float yPosition, float zPosition) 584public static Matrix4x4 CreateViewport(float x, float y, float width, float height, float minDepth, float maxDepth) 602public static Matrix4x4 CreateViewportLeftHanded(float x, float y, float width, float height, float minDepth, float maxDepth) 611public static Matrix4x4 CreateWorld(Vector3 position, Vector3 forward, Vector3 up) 620public static bool Decompose(Matrix4x4 matrix, out Vector3 scale, out Quaternion rotation, out Vector3 translation) 627public static bool Invert(Matrix4x4 matrix, out Matrix4x4 result) 639public static Matrix4x4 Lerp(Matrix4x4 matrix1, Matrix4x4 matrix2, float amount) 646public static Matrix4x4 Multiply(Matrix4x4 value1, Matrix4x4 value2) 654public static Matrix4x4 Multiply(Matrix4x4 value1, float value2) 661public static Matrix4x4 Negate(Matrix4x4 value) 669public static Matrix4x4 Subtract(Matrix4x4 value1, Matrix4x4 value2) 676public static Matrix4x4 Transform(Matrix4x4 value, Quaternion rotation) 682public static Matrix4x4 Transpose(Matrix4x4 matrix) 688/// <remarks>The current instance and <paramref name="obj" /> are equal if <paramref name="obj" /> is a <see cref="Matrix4x4" /> object and the corresponding elements of each matrix are equal.</remarks> 697public readonly bool Equals(Matrix4x4 other)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (5)
26internal ref Impl AsImpl() => ref Unsafe.As<Matrix4x4, Impl>(ref this); 30internal readonly ref readonly Impl AsROImpl() => ref Unsafe.As<Matrix4x4, Impl>(ref Unsafe.AsRef(in this)); 36public ref Matrix4x4 AsM4x4() => ref Unsafe.As<Impl, Matrix4x4>(ref this); 1707=> (obj is Matrix4x4 other) && Equals(in other.AsImpl());
src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (4)
140public static Plane Transform(Plane plane, Matrix4x4 matrix) 142Matrix4x4.Impl.Invert(matrix.AsImpl(), out Matrix4x4.Impl inverseMatrix); 143return Vector4.Transform(plane.AsVector4(), Matrix4x4.Impl.Transpose(inverseMatrix)).AsPlane();
src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (1)
228public static Quaternion CreateFromRotationMatrix(Matrix4x4 matrix)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (3)
919public static Vector2 Transform(Vector2 position, Matrix4x4 matrix) => Vector4.Transform(position, in matrix.AsImpl()).AsVector128().AsVector2(); 946public static Vector2 TransformNormal(Vector2 normal, Matrix4x4 matrix) => TransformNormal(normal, in matrix.AsImpl()); 949internal static Vector2 TransformNormal(Vector2 normal, in Matrix4x4.Impl matrix)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (3)
939public static Vector3 Transform(Vector3 position, Matrix4x4 matrix) => Vector4.Transform(position, in matrix.AsImpl()).AsVector128().AsVector3(); 953public static Vector3 TransformNormal(Vector3 normal, Matrix4x4 matrix) => TransformNormal(normal, in matrix.AsImpl()); 956internal static Vector3 TransformNormal(Vector3 normal, in Matrix4x4.Impl matrix)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (6)
969public static Vector4 Transform(Vector2 position, Matrix4x4 matrix) => Transform(position, in matrix.AsImpl()); 972internal static Vector4 Transform(Vector2 position, in Matrix4x4.Impl matrix) 993public static Vector4 Transform(Vector3 position, Matrix4x4 matrix) => Transform(position, in matrix.AsImpl()); 996internal static Vector4 Transform(Vector3 position, in Matrix4x4.Impl matrix) 1018public static Vector4 Transform(Vector4 vector, Matrix4x4 matrix) => Transform(vector, in matrix.AsImpl()); 1021internal static Vector4 Transform(Vector4 vector, in Matrix4x4.Impl matrix)