Add public API for physicshull (#5719)

This commit is contained in:
metalgearsloth
2025-03-03 22:07:38 +11:00
committed by GitHub
parent a1a7ea92d9
commit 9fe9730d4a
5 changed files with 35 additions and 21 deletions

View File

@@ -35,7 +35,7 @@ internal sealed class PhysicsHull_Test
[Test, TestCaseSource(nameof(CollinearHulls))]
public void CollinearTest(Vector2[] vertices, int count)
{
var hull = PhysicsHull.ComputeHull(vertices.AsSpan(), vertices.Length);
var hull = InternalPhysicsHull.ComputeHull(vertices.AsSpan(), vertices.Length);
Assert.That(hull.Count, Is.EqualTo(count));
}
@@ -89,7 +89,7 @@ internal sealed class PhysicsHull_Test
[Test, TestCaseSource(nameof(ValidateHulls))]
public void ValidationTest(Vector2[] vertices, bool result)
{
var hull = new PhysicsHull(vertices.AsSpan(), vertices.Length);
Assert.That(PhysicsHull.ValidateHull(hull), Is.EqualTo(result));
var hull = new InternalPhysicsHull(vertices.AsSpan(), vertices.Length);
Assert.That(InternalPhysicsHull.ValidateHull(hull), Is.EqualTo(result));
}
}