diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-08-14 17:39:16 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-08-14 17:39:16 -0600 |
commit | ea6ea322433b583df411d4a5643115e5cff7ebd5 (patch) | |
tree | 3a9729b35bc9785297ad302131490e1ca32f63ac /libdimension/sphere.c | |
parent | dade1a033957df08777904cfbc33884f1bab9aab (diff) | |
download | dimension-ea6ea322433b583df411d4a5643115e5cff7ebd5.tar.xz |
Add cylinders to libdimension.
Diffstat (limited to 'libdimension/sphere.c')
-rw-r--r-- | libdimension/sphere.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/sphere.c b/libdimension/sphere.c index a3ecf2d..98be4b5 100644 --- a/libdimension/sphere.c +++ b/libdimension/sphere.c @@ -51,7 +51,7 @@ dmnsn_sphere_intersection_fn(const dmnsn_object *sphere, dmnsn_line line, dmnsn_intersection *intersection) { dmnsn_line l = dmnsn_transform_line(sphere->trans_inv, line); - + /* Solve (x0 + nx*t)^2 + (y0 + ny*t)^2 + (z0 + nz*t)^2 == 1 */ double a, b, c, t; a = dmnsn_vector_dot(l.n, l.n); |