mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Add public API for physicshull (#5719)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user