try to fix mac test
This commit is contained in:
@@ -63,10 +63,10 @@ TEST_CASE("RaySphereIntersection")
|
||||
REQUIRE(ray.IntersectSphere(Vector3f(0), 1, h1, h2) == 1);
|
||||
REQUIRE(h1 == h2);
|
||||
::CompareVec3Approx(h1.normal, h1.point);
|
||||
const auto& value = ray.IntersectSphere(Vector3f(0), 1).value();
|
||||
REQUIRE(value.distance == h1.distance);
|
||||
::CompareVec3Approx(value.normal, h1.normal);
|
||||
::CompareVec3Approx(value.point, h1.point);
|
||||
auto value = ray.IntersectSphere(Vector3f(0), 1);
|
||||
REQUIRE(value->distance == h1.distance);
|
||||
::CompareVec3Approx(value->normal, h1.normal);
|
||||
::CompareVec3Approx(value->point, h1.point);
|
||||
}
|
||||
// ray intersects sphere behind the origin
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user