summaryrefslogtreecommitdiffstats
path: root/libdimension/sphere.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-22 21:56:10 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-22 21:56:10 +0000
commit9a72562eca9eb76e11439fb892a7b41bfc2c0a3e (patch)
tree23925c42b5a94c97bb0f27164bea16a93e8bd988 /libdimension/sphere.c
parent6d693da568e2a629a391432e56a146ee7463e9a9 (diff)
downloaddimension-9a72562eca9eb76e11439fb892a7b41bfc2c0a3e.tar.xz
Use C-style /* comments in C code.
Diffstat (limited to 'libdimension/sphere.c')
-rw-r--r--libdimension/sphere.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/sphere.c b/libdimension/sphere.c
index 2829720..5a4d1a9 100644
--- a/libdimension/sphere.c
+++ b/libdimension/sphere.c
@@ -50,7 +50,7 @@ dmnsn_sphere_intersections_fn(const dmnsn_object *sphere, dmnsn_line line)
double a, b, c, t[2];
dmnsn_array *array = dmnsn_new_array(sizeof(double));
- // Solve (x0 + nx*t)^2 + (y0 + ny*t)^2 + (z0 + nz*t)^2 == 1
+ /* Solve (x0 + nx*t)^2 + (y0 + ny*t)^2 + (z0 + nz*t)^2 == 1 */
a = line.n.x*line.n.x + line.n.y*line.n.y + line.n.z*line.n.z;
b = 2.0*(line.n.x*line.x0.x + line.n.y*line.x0.y + line.n.z*line.x0.z);