178 references to Impl
System.Private.CoreLib (178)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (46)
120
get =>
Impl
.Identity.AsM4x4();
234
=>
Impl
.CreateBillboard(in objectPosition, in cameraPosition, in cameraUpVector, in cameraForwardVector).AsM4x4();
243
=>
Impl
.CreateBillboardLeftHanded(in objectPosition, in cameraPosition, in cameraUpVector, in cameraForwardVector).AsM4x4();
253
=>
Impl
.CreateConstrainedBillboard(in objectPosition, in cameraPosition, in rotateAxis, in cameraForwardVector, in objectForwardVector).AsM4x4();
263
=>
Impl
.CreateConstrainedBillboardLeftHanded(in objectPosition, in cameraPosition, in rotateAxis, in cameraForwardVector, in objectForwardVector).AsM4x4();
270
=>
Impl
.CreateFromAxisAngle(in axis, angle).AsM4x4();
276
=>
Impl
.CreateFromQuaternion(in quaternion).AsM4x4();
284
=>
Impl
.CreateFromYawPitchRoll(yaw, pitch, roll).AsM4x4();
294
return
Impl
.CreateLookTo(in cameraPosition, in cameraDirection, in cameraUpVector).AsM4x4();
305
return
Impl
.CreateLookToLeftHanded(in cameraPosition, in cameraDirection, in cameraUpVector).AsM4x4();
314
=>
Impl
.CreateLookTo(in cameraPosition, in cameraDirection, in cameraUpVector).AsM4x4();
323
return
Impl
.CreateLookToLeftHanded(in cameraPosition, in cameraDirection, in cameraUpVector).AsM4x4();
333
=>
Impl
.CreateOrthographic(width, height, zNearPlane, zFarPlane).AsM4x4();
342
=>
Impl
.CreateOrthographicLeftHanded(width, height, zNearPlane, zFarPlane).AsM4x4();
353
=>
Impl
.CreateOrthographicOffCenter(left, right, bottom, top, zNearPlane, zFarPlane).AsM4x4();
364
=>
Impl
.CreateOrthographicOffCenterLeftHanded(left, right, bottom, top, zNearPlane, zFarPlane).AsM4x4();
378
=>
Impl
.CreatePerspective(width, height, nearPlaneDistance, farPlaneDistance).AsM4x4();
392
=>
Impl
.CreatePerspectiveLeftHanded(width, height, nearPlaneDistance, farPlaneDistance).AsM4x4();
409
=>
Impl
.CreatePerspectiveFieldOfView(fieldOfView, aspectRatio, nearPlaneDistance, farPlaneDistance).AsM4x4();
426
=>
Impl
.CreatePerspectiveFieldOfViewLeftHanded(fieldOfView, aspectRatio, nearPlaneDistance, farPlaneDistance).AsM4x4();
442
=>
Impl
.CreatePerspectiveOffCenter(left, right, bottom, top, nearPlaneDistance, farPlaneDistance).AsM4x4();
458
=>
Impl
.CreatePerspectiveOffCenterLeftHanded(left, right, bottom, top, nearPlaneDistance, farPlaneDistance).AsM4x4();
464
=>
Impl
.CreateReflection(in value).AsM4x4();
470
=>
Impl
.CreateRotationX(radians).AsM4x4();
477
=>
Impl
.CreateRotationX(radians, in centerPoint).AsM4x4();
483
=>
Impl
.CreateRotationY(radians).AsM4x4();
490
=>
Impl
.CreateRotationY(radians, in centerPoint).AsM4x4();
496
=>
Impl
.CreateRotationZ(radians).AsM4x4();
503
=>
Impl
.CreateRotationZ(radians, in centerPoint).AsM4x4();
511
=>
Impl
.CreateScale(xScale, yScale, zScale).AsM4x4();
520
=>
Impl
.CreateScale(xScale, yScale, zScale, in centerPoint).AsM4x4();
526
=>
Impl
.CreateScale(in scales).AsM4x4();
533
=>
Impl
.CreateScale(scales, in centerPoint).AsM4x4();
539
=>
Impl
.CreateScale(scale).AsM4x4();
546
=>
Impl
.CreateScale(scale, in centerPoint).AsM4x4();
553
=>
Impl
.CreateShadow(in lightDirection, in plane).AsM4x4();
559
=>
Impl
.CreateTranslation(in position).AsM4x4();
567
=>
Impl
.CreateTranslation(xPosition, yPosition, zPosition).AsM4x4();
585
=>
Impl
.CreateViewport(x, y, width, height, minDepth, maxDepth).AsM4x4();
603
=>
Impl
.CreateViewportLeftHanded(x, y, width, height, minDepth, maxDepth).AsM4x4();
612
=>
Impl
.CreateWorld(in position, in forward, in up).AsM4x4();
621
=>
Impl
.Decompose(in matrix.AsImpl(), out scale, out rotation, out translation);
630
return
Impl
.Invert(in matrix.AsImpl(), out result.AsImpl());
640
=>
Impl
.Lerp(in matrix1.AsImpl(), in matrix2.AsImpl(), amount).AsM4x4();
677
=>
Impl
.Transform(in value.AsImpl(), in rotation).AsM4x4();
683
=>
Impl
.Transpose(in matrix.AsImpl()).AsM4x4();
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (124)
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));
32
internal struct Impl : IEquatable<
Impl
>
36
public ref Matrix4x4 AsM4x4() => ref Unsafe.As<
Impl
, Matrix4x4>(ref this);
68
public static
Impl
Identity
73
Impl
result;
132
public static
Impl
operator +(in
Impl
left, in
Impl
right)
134
Impl
result;
145
public static bool operator ==(in
Impl
left, in
Impl
right)
154
public static bool operator !=(in
Impl
left, in
Impl
right)
163
public static
Impl
operator *(in
Impl
left, in
Impl
right)
165
Impl
result;
176
public static
Impl
operator *(in
Impl
left, float right)
178
Impl
result;
189
public static
Impl
operator -(in
Impl
left, in
Impl
right)
191
Impl
result;
202
public static
Impl
operator -(in
Impl
value)
204
Impl
result;
215
public static
Impl
CreateBillboard(in Vector3 objectPosition, in Vector3 cameraPosition, in Vector3 cameraUpVector, in Vector3 cameraForwardVector)
235
Impl
result;
246
public static
Impl
CreateBillboardLeftHanded(in Vector3 objectPosition, in Vector3 cameraPosition, in Vector3 cameraUpVector, in Vector3 cameraForwardVector)
266
Impl
result;
277
public static
Impl
CreateConstrainedBillboard(in Vector3 objectPosition, in Vector3 cameraPosition, in Vector3 rotateAxis, in Vector3 cameraForwardVector, in Vector3 objectForwardVector)
327
Impl
result;
337
public static
Impl
CreateConstrainedBillboardLeftHanded(in Vector3 objectPosition, in Vector3 cameraPosition, in Vector3 rotateAxis, in Vector3 cameraForwardVector, in Vector3 objectForwardVector)
387
Impl
result;
398
public static
Impl
CreateFromAxisAngle(in Vector3 axis, float angle)
405
public static
Impl
CreateFromQuaternion(in Quaternion quaternion)
418
Impl
result;
444
public static
Impl
CreateFromYawPitchRoll(float yaw, float pitch, float roll)
451
public static
Impl
CreateLookTo(in Vector3 cameraPosition, in Vector3 cameraDirection, in Vector3 cameraUpVector)
460
public static
Impl
CreateLookToLeftHanded(in Vector3 cameraPosition, in Vector3 cameraDirection, in Vector3 cameraUpVector)
470
Impl
result;
481
public static
Impl
CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane)
488
Impl
result;
499
public static
Impl
CreateOrthographicLeftHanded(float width, float height, float zNearPlane, float zFarPlane)
506
Impl
result;
517
public static
Impl
CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
526
Impl
result;
542
public static
Impl
CreateOrthographicOffCenterLeftHanded(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
551
Impl
result;
567
public static
Impl
CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance)
579
Impl
result;
590
public static
Impl
CreatePerspectiveLeftHanded(float width, float height, float nearPlaneDistance, float farPlaneDistance)
602
Impl
result;
613
public static
Impl
CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
629
Impl
result;
640
public static
Impl
CreatePerspectiveFieldOfViewLeftHanded(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
656
Impl
result;
667
public static
Impl
CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance)
681
Impl
result;
697
public static
Impl
CreatePerspectiveOffCenterLeftHanded(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance)
711
Impl
result;
727
public static
Impl
CreateReflection(in Plane value)
735
Impl
result;
746
public static
Impl
CreateRotationX(float radians)
755
Impl
result;
766
public static
Impl
CreateRotationX(float radians, in Vector3 centerPoint)
778
Impl
result;
789
public static
Impl
CreateRotationY(float radians)
798
Impl
result;
809
public static
Impl
CreateRotationY(float radians, in Vector3 centerPoint)
821
Impl
result;
832
public static
Impl
CreateRotationZ(float radians)
841
Impl
result;
852
public static
Impl
CreateRotationZ(float radians, in Vector3 centerPoint)
864
Impl
result;
875
public static
Impl
CreateScale(float scaleX, float scaleY, float scaleZ)
877
Impl
result;
888
public static
Impl
CreateScale(float scaleX, float scaleY, float scaleZ, in Vector3 centerPoint)
890
Impl
result;
901
public static
Impl
CreateScale(in Vector3 scales)
903
Impl
result;
914
public static
Impl
CreateScale(in Vector3 scales, in Vector3 centerPoint)
916
Impl
result;
927
public static
Impl
CreateScale(float scale)
929
Impl
result;
940
public static
Impl
CreateScale(float scale, in Vector3 centerPoint)
942
Impl
result;
953
public static
Impl
CreateShadow(in Vector3 lightDirection, in Plane plane)
961
Impl
result;
972
public static
Impl
CreateTranslation(in Vector3 position)
974
Impl
result;
985
public static
Impl
CreateTranslation(float positionX, float positionY, float positionZ)
987
Impl
result;
999
public static
Impl
CreateViewport(float x, float y, float width, float height, float minDepth, float maxDepth)
1001
Impl
result;
1016
public static
Impl
CreateViewportLeftHanded(float x, float y, float width, float height, float minDepth, float maxDepth)
1018
Impl
result;
1033
public static
Impl
CreateWorld(in Vector3 position, in Vector3 forward, in Vector3 up)
1039
Impl
result;
1050
public static unsafe bool Decompose(in
Impl
matrix, out Vector3 scale, out Quaternion rotation, out Vector3 translation)
1052
Impl
matTemp = Identity;
1237
public static bool Invert(in
Impl
matrix, out
Impl
result)
1250
static bool SseImpl(in
Impl
matrix, out
Impl
result)
1411
static bool SoftwareFallback(in
Impl
matrix, out
Impl
result)
1578
public static
Impl
Lerp(in
Impl
left, in
Impl
right, float amount)
1580
Impl
result;
1591
public static
Impl
Transform(in
Impl
value, in Quaternion rotation)
1622
Impl
result;
1653
public static
Impl
Transpose(in
Impl
matrix)
1658
Impl
result;
1710
public readonly bool Equals(in
Impl
other)
1772
readonly bool IEquatable<
Impl
>.Equals(
Impl
other) => Equals(in other);
src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (3)
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\Vector2.cs (1)
949
internal static Vector2 TransformNormal(Vector2 normal, in Matrix4x4.
Impl
matrix)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (1)
956
internal static Vector3 TransformNormal(Vector3 normal, in Matrix4x4.
Impl
matrix)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (3)
972
internal static Vector4 Transform(Vector2 position, in Matrix4x4.
Impl
matrix)
996
internal static Vector4 Transform(Vector3 position, in Matrix4x4.
Impl
matrix)
1021
internal static Vector4 Transform(Vector4 vector, in Matrix4x4.
Impl
matrix)