1 instantiation of Plane
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
104P14 = new Plane(1, 2, 3, 4),
61 references to Plane
Microsoft.Gen.Logging.Generated.Tests (1)
parent\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
31public Plane P14 { get; set; }
netstandard (1)
netstandard.cs (1)
1335[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Plane))]
System.Numerics (1)
System.Numerics.cs (1)
8[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Plane))]
System.Numerics.Vectors (1)
src\runtime\artifacts\obj\System.Numerics.Vectors\Release\net11.0\System.Numerics.Vectors.Forwards.cs (1)
9[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Plane))]
System.Private.CoreLib (57)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (4)
1396public static Matrix4x4 CreateReflection(Plane value) 1401Vector128<float> p = Plane.Normalize(value.AsVector128()); 1672public static Matrix4x4 CreateShadow(Vector3 lightDirection, Plane plane) 1674Vector128<float> p = Plane.Normalize(plane.AsVector128());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (39)
15public struct Plane : IEquatable<Plane> 23/// <summary>Initializes a <see cref="Plane" /> from the X, Y, and Z components of its normal, and its distance from the origin on that normal.</summary> 35/// <summary>Initializes a <see cref="Plane" /> from a specified normal and the distance along the normal from the origin.</summary> 45/// <summary>Initializes a <see cref="Plane" /> from a specified four-dimensional vector.</summary> 54/// <summary>Creates a <see cref="Plane" /> from a specified four-dimensional vector.</summary> 56/// <remarks>A <see cref="Plane" /> created using <paramref name="value" />.</remarks> 59public static Plane Create(Vector4 value) => value.AsPlane(); 61/// <summary>Creates a <see cref="Plane" /> from a specified normal and the distance along the normal from the origin.</summary> 64/// <returns>A <see cref="Plane" /> created from a specified normal and the distance along the normal from the origin.</returns> 67public static Plane Create(Vector3 normal, float d) => Vector4.Create(normal, d).AsPlane(); 69/// <summary>Creates a <see cref="Plane" /> from the X, Y, and Z components of its normal, and its distance from the origin on that normal.</summary> 74/// <returns>A <see cref="Plane" /> created from the X, Y, and Z components of its normal, and its distance from the origin on that normal.</returns> 77public static Plane Create(float x, float y, float z, float d) => Vector128.Create(x, y, z, d).AsPlane(); 79/// <summary>Creates a <see cref="Plane" /> object that contains three specified points.</summary> 85public static Plane CreateFromVertices(Vector3 point1, Vector3 point2, Vector3 point3) => CreateFromVertices(point1.AsVector128Unsafe(), point2.AsVector128Unsafe(), point3.AsVector128Unsafe()).AsPlane(); 103public static float Dot(Plane plane, Vector4 value) => Vector128.Dot(plane.AsVector128(), value.AsVector128()); 110public static float DotCoordinate(Plane plane, Vector3 value) 123public static float DotNormal(Plane plane, Vector3 value) 131/// <summary>Creates a new <see cref="Plane" /> object whose normal vector is the source plane's normal vector normalized.</summary> 135public static Plane Normalize(Plane value) => Normalize(value.AsVector128()).AsPlane(); 157public static Plane Transform(Plane plane, Matrix4x4 matrix) 169public static Plane Transform(Plane plane, Quaternion rotation) => Vector4.Transform(plane.AsVector128(), rotation.AsVector128()).AsPlane(); 175/// <remarks>Two <see cref="Plane" /> objects are equal if their <see cref="Normal" /> and <see cref="D" /> fields are equal. 176/// The <see cref="op_Equality" /> method defines the operation of the equality operator for <see cref="Plane" /> objects.</remarks> 179public static bool operator ==(Plane value1, Plane value2) => value1.AsVector128() == value2.AsVector128(); 185/// <remarks>The <see cref="op_Inequality" /> method defines the operation of the inequality operator for <see cref="Plane" /> objects.</remarks> 188public static bool operator !=(Plane value1, Plane value2) => value1.AsVector128() != value2.AsVector128(); 193/// <remarks>The current instance and <paramref name="obj" /> are equal if <paramref name="obj" /> is a <see cref="Plane" /> object and their <see cref="Normal" /> and <see cref="D" /> fields are equal.</remarks> 194public override readonly bool Equals([NotNullWhen(true)] object? obj) => (obj is Plane other) && Equals(other); 199/// <remarks>Two <see cref="Plane" /> objects are equal if their <see cref="Normal" /> and <see cref="D" /> fields are equal.</remarks> 201public readonly bool Equals(Plane other) => this.AsVector128().Equals(other.AsVector128()); 208/// <returns>A string that represents this <see cref="Plane" /> object.</returns> 209/// <remarks>The string representation of a <see cref="Plane" /> object use the formatting conventions of the current culture to format the numeric values in the returned string. For example, a <see cref="Plane" /> object whose string representation is formatted by using the conventions of the en-US culture might appear as <c>{Normal:&lt;1.1, 2.2, 3.3&gt; D:4.4}</c>.</remarks>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.Extensions.cs (3)
10/// <summary>Reinterprets a <see cref="Plane" /> as a new <see cref="Vector4" />.</summary> 14public static Vector4 AsVector4(this Plane value) => Unsafe.BitCast<Plane, Vector4>(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.Extensions.cs (4)
13/// <summary>Reinterprets a <see cref="Vector4" /> as a new <see cref="Plane" />.</summary> 15/// <returns><paramref name="value" /> reinterpreted as a new <see cref="Plane" />.</returns> 16public static Plane AsPlane(this Vector4 value) => Unsafe.BitCast<Vector4, Plane>(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.Numerics.cs (7)
52/// <summary>Reinterprets a <see langword="Vector128&lt;Single&gt;" /> as a new <see cref="Plane" />.</summary> 54/// <returns><paramref name="value" /> reinterpreted as a new <see cref="Plane" />.</returns> 56public static Plane AsPlane(this Vector128<float> value) => Unsafe.BitCast<Vector128<float>, Plane>(value); 64/// <summary>Reinterprets a <see cref="Plane" /> as a new <see langword="Vector128&lt;Single&gt;" />.</summary> 68public static Vector128<float> AsVector128(this Plane value) => Unsafe.BitCast<Plane, Vector128<float>>(value);