1 instantiation of Plane
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
104
P14 = new
Plane
(1, 2, 3, 4),
60 references to Plane
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
31
public
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)
artifacts\obj\System.Numerics.Vectors\Debug\net10.0\System.Numerics.Vectors.Forwards.cs (1)
5
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
Plane
))]
System.Private.CoreLib (56)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (2)
444
public static Matrix4x4 CreateReflection(
Plane
value)
533
public static Matrix4x4 CreateShadow(Vector3 lightDirection,
Plane
plane)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (4)
617
public static Impl CreateReflection(in
Plane
value)
622
Vector4 p =
Plane
.Normalize(value).AsVector4();
843
public static Impl CreateShadow(in Vector3 lightDirection, in
Plane
plane)
845
Vector4 p =
Plane
.Normalize(plane).AsVector4();
src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (36)
15
public struct Plane : IEquatable<
Plane
>
23
/// <summary>Creates a <see cref="
Plane
" /> object from the X, Y, and Z components of its normal, and its distance from the origin on that normal.</summary>
34
/// <summary>Creates a <see cref="
Plane
" /> object from a specified normal and the distance along the normal from the origin.</summary>
43
/// <summary>Creates a <see cref="
Plane
" /> object from a specified four-dimensional vector.</summary>
51
/// <summary>Creates a <see cref="
Plane
" /> object from the X, Y, and Z components of its normal, and its distance from the origin on that normal.</summary>
56
/// <returns>A new <see cref="
Plane
" /> object from the X, Y, and Z components of its normal, and its distance from the origin on that normal.</returns>
58
internal static
Plane
Create(float x, float y, float z, float d) => Vector128.Create(x, y, z, d).AsPlane();
60
/// <summary>Creates a <see cref="
Plane
" /> object from a specified normal and the distance along the normal from the origin.</summary>
63
/// <returns>A new <see cref="
Plane
" /> object from a specified normal and the distance along the normal from the origin.</returns>
65
internal static
Plane
Create(Vector3 normal, float d) => Vector4.Create(normal, d).AsPlane();
67
/// <summary>Creates a <see cref="
Plane
" /> object that contains three specified points.</summary>
73
public static
Plane
CreateFromVertices(Vector3 point1, Vector3 point2, Vector3 point3)
92
public static float Dot(
Plane
plane, Vector4 value) => Vector128.Dot(plane.AsVector128(), value.AsVector128());
98
public static float DotCoordinate(
Plane
plane, Vector3 value)
110
public static float DotNormal(
Plane
plane, Vector3 value)
118
/// <summary>Creates a new <see cref="
Plane
" /> object whose normal vector is the source plane's normal vector normalized.</summary>
121
public static
Plane
Normalize(
Plane
value)
140
public static
Plane
Transform(
Plane
plane, Matrix4x4 matrix)
152
public static
Plane
Transform(
Plane
plane, Quaternion rotation) => Vector4.Transform(plane.AsVector4(), rotation).AsPlane();
158
/// <remarks>Two <see cref="
Plane
" /> objects are equal if their <see cref="Normal" /> and <see cref="D" /> fields are equal.
159
/// The <see cref="op_Equality" /> method defines the operation of the equality operator for <see cref="
Plane
" /> objects.</remarks>
162
public static bool operator ==(
Plane
value1,
Plane
value2) => value1.AsVector128() == value2.AsVector128();
168
/// <remarks>The <see cref="op_Inequality" /> method defines the operation of the inequality operator for <see cref="
Plane
" /> objects.</remarks>
170
public static bool operator !=(
Plane
value1,
Plane
value2) => !(value1 == value2);
175
/// <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>
176
public override readonly bool Equals([NotNullWhen(true)] object? obj) => (obj is
Plane
other) && Equals(other);
181
/// <remarks>Two <see cref="
Plane
" /> objects are equal if their <see cref="Normal" /> and <see cref="D" /> fields are equal.</remarks>
183
public readonly bool Equals(
Plane
other) => this.AsVector128().Equals(other.AsVector128());
190
/// <returns>A string that represents this <see cref="
Plane
" /> object.</returns>
191
/// <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:<1.1, 2.2, 3.3> D:4.4}</c>.</remarks>
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>
14
public static Vector4 AsVector4(this
Plane
value)
19
return Unsafe.BitCast<
Plane
, Vector4>(value);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.Extensions.cs (4)
12
/// <summary>Reinterprets a <see cref="Vector4" /> as a new <see cref="
Plane
" />.</summary>
14
/// <returns><paramref name="value" /> reinterpreted as a new <see cref="
Plane
" />.</returns>
16
public static
Plane
AsPlane(this Vector4 value)
21
return Unsafe.BitCast<Vector4,
Plane
>(value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (7)
173
/// <summary>Reinterprets a <see langword="Vector128<Single>" /> as a new <see cref="
Plane
" />.</summary>
175
/// <returns><paramref name="value" /> reinterpreted as a new <see cref="
Plane
" />.</returns>
177
internal static
Plane
AsPlane(this Vector128<float> value)
182
return Unsafe.BitCast<Vector128<float>,
Plane
>(value);
243
/// <summary>Reinterprets a <see cref="
Plane
" /> as a new <see langword="Vector128<Single>" />.</summary>
247
internal static Vector128<float> AsVector128(this
Plane
value)
252
return Unsafe.BitCast<
Plane
, Vector128<float>>(value);