mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
// <auto-generated /> - edit Matrix.equality.tt to modify
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.Numerics;
|
||||
|
||||
public partial struct float4x4
|
||||
{
|
||||
/// <inheritdoc cref="Matrix4x4.Equals(object?)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public override readonly bool Equals([NotNullWhen(true)] object? obj)
|
||||
{
|
||||
return obj is float4x4 other && Equals(other);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Matrix4x4.Equals(Matrix4x4)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public readonly bool Equals(float4x4 other)
|
||||
{
|
||||
// This function needs to account for floating-point equality around NaN
|
||||
// and so must behave equivalently to the underlying float/float.Equals
|
||||
|
||||
return X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z) && W.Equals(other.W);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Matrix4x4.GetHashCode()" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public override readonly int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(X, Y, Z, W);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue