summaryrefslogtreecommitdiffstats
path: root/libdimension/raytrace.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-19 13:38:22 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-19 13:38:22 -0400
commitfc06cb624d79788923ab2dedb3cd2ccab53cb2b4 (patch)
tree081c1267b2661b53dfcb02b636c6594e05c6e195 /libdimension/raytrace.c
parentc01e193e19d45e2c5b1e86928cedc11cdbdda476 (diff)
downloaddimension-fc06cb624d79788923ab2dedb3cd2ccab53cb2b4.tar.xz
Make float equality comparisons more relaxed.
Diffstat (limited to 'libdimension/raytrace.c')
-rw-r--r--libdimension/raytrace.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index 9d6397e..61ebd08 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -279,19 +279,6 @@ dmnsn_raytrace_scene_impl(dmnsn_progress *progress, dmnsn_scene *scene,
return 0;
}
-/* Add epsilon*l.n to l.x0, to avoid self-intersections */
-static dmnsn_line
-dmnsn_line_add_epsilon(dmnsn_line l)
-{
- return dmnsn_new_line(
- dmnsn_vector_add(
- l.x0,
- dmnsn_vector_mul(1.0e-9, l.n)
- ),
- l.n
- );
-}
-
#define ITEXTURE(state) (state->intersection->texture)
#define DTEXTURE(state) (state->scene->default_texture)