summaryrefslogtreecommitdiff
path: root/test_vec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test_vec.cpp')
-rw-r--r--test_vec.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/test_vec.cpp b/test_vec.cpp
index a81ee09..537e556 100644
--- a/test_vec.cpp
+++ b/test_vec.cpp
@@ -106,19 +106,6 @@ TEST(Vec, Reflect) {
ASSERT_EQ(v, n.reflect(u));
}
-TEST(Vec, Refract) {
- vec3d n{1, 0, 0}, u{-1, 0, -1}, v{-sqrt(14), 0, -sqrt(2)};
- ASSERT_EQ(u.unit_vec(), n.refract<true>(u.unit_vec(), 1).unit_vec());
- ASSERT_EQ(u.unit_vec(), n.refract<false>(u.unit_vec(), 1).unit_vec());
- ASSERT_EQ(v.unit_vec(), n.refract<true>(u.unit_vec(), 0.5).unit_vec());
- ASSERT_EQ(v.unit_vec(), n.refract<false>(u.unit_vec(), 0.5).unit_vec());
-}
-
-TEST(Vec, Refract_TIR) {
- vec3d n{1, 0, 0}, u{-1, 0, -sqrt(3)}, v{1, 0, -sqrt(3)};
- ASSERT_EQ(v.unit_vec(), n.refract<true>(u.unit_vec(), 2));
-}
-
TEST(Vec, VecParallel) {
vec3d a{1, 1, 2}, b{1.1, 1.1, 2.2}, c{0,0,0}, d{1, 2, 1};
ASSERT_TRUE(a.parallel(b));