Fix package dependency problem
All checks were successful
Publish NuGet Packages / publish (push) Successful in 1m47s
All checks were successful
Publish NuGet Packages / publish (push) Successful in 1m47s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Misaki.HighPerformance.Mathematics.Geometry;
|
||||
|
||||
@@ -232,13 +232,13 @@ public struct AABB : IEquatable<AABB>
|
||||
return !(left == right);
|
||||
}
|
||||
|
||||
public readonly override int GetHashCode()
|
||||
public override readonly int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(Min, Max);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public readonly override string ToString()
|
||||
public override readonly string ToString()
|
||||
{
|
||||
return string.Format("AABB({0}, {1})", Min, Max);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Misaki.HighPerformance.Mathematics.Geometry;
|
||||
namespace Misaki.HighPerformance.Mathematics.Geometry;
|
||||
|
||||
public struct OBB : IEquatable<OBB>
|
||||
{
|
||||
@@ -38,7 +38,7 @@ public struct OBB : IEquatable<OBB>
|
||||
max = centerProjection + r;
|
||||
}
|
||||
|
||||
public unsafe readonly bool Overlaps(OBB other)
|
||||
public readonly unsafe bool Overlaps(OBB other)
|
||||
{
|
||||
// Using the Separating Axis Theorem (SAT) for OBB-OBB intersection test
|
||||
var axes = stackalloc float3[15];
|
||||
@@ -109,12 +109,12 @@ public struct OBB : IEquatable<OBB>
|
||||
return Rotation.Equals(other.Rotation) && Center.Equals(other.Center) && Extents.Equals(other.Extents);
|
||||
}
|
||||
|
||||
public readonly override bool Equals(object? obj)
|
||||
public override readonly bool Equals(object? obj)
|
||||
{
|
||||
return obj is OBB obb && Equals(obb);
|
||||
}
|
||||
|
||||
public readonly override int GetHashCode()
|
||||
public override readonly int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(Rotation, Center, Extents);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Misaki.HighPerformance.Mathematics.Geometry;
|
||||
|
||||
@@ -98,12 +98,12 @@ public struct SphereBounds : IEquatable<SphereBounds>
|
||||
}
|
||||
}
|
||||
|
||||
public readonly override string ToString()
|
||||
public override readonly string ToString()
|
||||
{
|
||||
return $"Center: {Center}, Radius: {Radius}";
|
||||
}
|
||||
|
||||
public readonly override int GetHashCode()
|
||||
public override readonly int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(Center, Radius);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user