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