2 instantiations of Matrix4x4
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
103
P13 = 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)
30
public
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)
14
public partial struct Matrix4x4 : IEquatable<
Matrix4x4
>
106
/// <summary>Creates a <see cref="
Matrix4x4
" /> object from a specified <see cref="Matrix3x2" /> object.</summary>
117
public static
Matrix4x4
Identity
164
/// <remarks>The <see cref="op_Addition" /> method defines the operation of the addition operator for <see cref="
Matrix4x4
" /> objects.</remarks>
166
public static
Matrix4x4
operator +(
Matrix4x4
value1,
Matrix4x4
value2)
175
public static bool operator ==(
Matrix4x4
value1,
Matrix4x4
value2)
183
public 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>
191
public 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>
200
public 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>
209
public static
Matrix4x4
operator -(
Matrix4x4
value1,
Matrix4x4
value2)
216
public static
Matrix4x4
operator -(
Matrix4x4
value)
224
public static
Matrix4x4
Add(
Matrix4x4
value1,
Matrix4x4
value2)
233
public static
Matrix4x4
CreateBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector)
242
public static
Matrix4x4
CreateBillboardLeftHanded(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector)
252
public static
Matrix4x4
CreateConstrainedBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector)
262
public static
Matrix4x4
CreateConstrainedBillboardLeftHanded(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector)
269
public static
Matrix4x4
CreateFromAxisAngle(Vector3 axis, float angle)
275
public static
Matrix4x4
CreateFromQuaternion(Quaternion quaternion)
283
public static
Matrix4x4
CreateFromYawPitchRoll(float yaw, float pitch, float roll)
291
public static
Matrix4x4
CreateLookAt(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector)
302
public static
Matrix4x4
CreateLookAtLeftHanded(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector)
313
public static
Matrix4x4
CreateLookTo(Vector3 cameraPosition, Vector3 cameraDirection, Vector3 cameraUpVector)
321
public static
Matrix4x4
CreateLookToLeftHanded(Vector3 cameraPosition, Vector3 cameraDirection, Vector3 cameraUpVector)
332
public static
Matrix4x4
CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane)
341
public static
Matrix4x4
CreateOrthographicLeftHanded(float width, float height, float zNearPlane, float zFarPlane)
352
public static
Matrix4x4
CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
363
public static
Matrix4x4
CreateOrthographicOffCenterLeftHanded(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
377
public static
Matrix4x4
CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance)
391
public static
Matrix4x4
CreatePerspectiveLeftHanded(float width, float height, float nearPlaneDistance, float farPlaneDistance)
408
public static
Matrix4x4
CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
425
public static
Matrix4x4
CreatePerspectiveFieldOfViewLeftHanded(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
441
public static
Matrix4x4
CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance)
457
public static
Matrix4x4
CreatePerspectiveOffCenterLeftHanded(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance)
463
public static
Matrix4x4
CreateReflection(Plane value)
469
public static
Matrix4x4
CreateRotationX(float radians)
476
public static
Matrix4x4
CreateRotationX(float radians, Vector3 centerPoint)
482
public static
Matrix4x4
CreateRotationY(float radians)
489
public static
Matrix4x4
CreateRotationY(float radians, Vector3 centerPoint)
495
public static
Matrix4x4
CreateRotationZ(float radians)
502
public static
Matrix4x4
CreateRotationZ(float radians, Vector3 centerPoint)
510
public static
Matrix4x4
CreateScale(float xScale, float yScale, float zScale)
519
public static
Matrix4x4
CreateScale(float xScale, float yScale, float zScale, Vector3 centerPoint)
525
public static
Matrix4x4
CreateScale(Vector3 scales)
532
public static
Matrix4x4
CreateScale(Vector3 scales, Vector3 centerPoint)
538
public static
Matrix4x4
CreateScale(float scale)
545
public static
Matrix4x4
CreateScale(float scale, Vector3 centerPoint)
552
public static
Matrix4x4
CreateShadow(Vector3 lightDirection, Plane plane)
558
public static
Matrix4x4
CreateTranslation(Vector3 position)
566
public static
Matrix4x4
CreateTranslation(float xPosition, float yPosition, float zPosition)
584
public static
Matrix4x4
CreateViewport(float x, float y, float width, float height, float minDepth, float maxDepth)
602
public static
Matrix4x4
CreateViewportLeftHanded(float x, float y, float width, float height, float minDepth, float maxDepth)
611
public static
Matrix4x4
CreateWorld(Vector3 position, Vector3 forward, Vector3 up)
620
public static bool Decompose(
Matrix4x4
matrix, out Vector3 scale, out Quaternion rotation, out Vector3 translation)
627
public static bool Invert(
Matrix4x4
matrix, out
Matrix4x4
result)
639
public static
Matrix4x4
Lerp(
Matrix4x4
matrix1,
Matrix4x4
matrix2, float amount)
646
public static
Matrix4x4
Multiply(
Matrix4x4
value1,
Matrix4x4
value2)
654
public static
Matrix4x4
Multiply(
Matrix4x4
value1, float value2)
661
public static
Matrix4x4
Negate(
Matrix4x4
value)
669
public static
Matrix4x4
Subtract(
Matrix4x4
value1,
Matrix4x4
value2)
676
public static
Matrix4x4
Transform(
Matrix4x4
value, Quaternion rotation)
682
public 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>
697
public readonly bool Equals(
Matrix4x4
other)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (5)
26
internal ref Impl AsImpl() => ref Unsafe.As<
Matrix4x4
, Impl>(ref this);
30
internal readonly ref readonly Impl AsROImpl() => ref Unsafe.As<
Matrix4x4
, Impl>(ref Unsafe.AsRef(in this));
36
public 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)
140
public static Plane Transform(Plane plane,
Matrix4x4
matrix)
142
Matrix4x4
.Impl.Invert(matrix.AsImpl(), out
Matrix4x4
.Impl inverseMatrix);
143
return Vector4.Transform(plane.AsVector4(),
Matrix4x4
.Impl.Transpose(inverseMatrix)).AsPlane();
src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (1)
228
public static Quaternion CreateFromRotationMatrix(
Matrix4x4
matrix)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (3)
919
public static Vector2 Transform(Vector2 position,
Matrix4x4
matrix) => Vector4.Transform(position, in matrix.AsImpl()).AsVector128().AsVector2();
946
public static Vector2 TransformNormal(Vector2 normal,
Matrix4x4
matrix) => TransformNormal(normal, in matrix.AsImpl());
949
internal static Vector2 TransformNormal(Vector2 normal, in
Matrix4x4
.Impl matrix)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (3)
939
public static Vector3 Transform(Vector3 position,
Matrix4x4
matrix) => Vector4.Transform(position, in matrix.AsImpl()).AsVector128().AsVector3();
953
public static Vector3 TransformNormal(Vector3 normal,
Matrix4x4
matrix) => TransformNormal(normal, in matrix.AsImpl());
956
internal static Vector3 TransformNormal(Vector3 normal, in
Matrix4x4
.Impl matrix)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (6)
969
public static Vector4 Transform(Vector2 position,
Matrix4x4
matrix) => Transform(position, in matrix.AsImpl());
972
internal static Vector4 Transform(Vector2 position, in
Matrix4x4
.Impl matrix)
993
public static Vector4 Transform(Vector3 position,
Matrix4x4
matrix) => Transform(position, in matrix.AsImpl());
996
internal static Vector4 Transform(Vector3 position, in
Matrix4x4
.Impl matrix)
1018
public static Vector4 Transform(Vector4 vector,
Matrix4x4
matrix) => Transform(vector, in matrix.AsImpl());
1021
internal static Vector4 Transform(Vector4 vector, in
Matrix4x4
.Impl matrix)