summaryrefslogtreecommitdiffstats
path: root/libdimension/cone.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-10-19 13:59:24 -0400
committerTavian Barnes <tavianator@gmail.com>2011-10-30 18:11:22 -0400
commit8e3a7158ecae541692826e7b5998c8ffc810173a (patch)
treebeda4f9f8604f77d0513d5fb02b7ddf53d203d09 /libdimension/cone.c
parente9810a7b1aae15320e58371b657a2f963562834d (diff)
downloaddimension-8e3a7158ecae541692826e7b5998c8ffc810173a.tar.xz
Make API more consistent.
Object methods should be dmnsn_<object>_<fn>().
Diffstat (limited to 'libdimension/cone.c')
-rw-r--r--libdimension/cone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/cone.c b/libdimension/cone.c
index 4d4e2cb..ec230a6 100644
--- a/libdimension/cone.c
+++ b/libdimension/cone.c
@@ -48,7 +48,7 @@ dmnsn_cone_intersection_fn(const dmnsn_object *cone, dmnsn_line l,
poly[0] = l.x0.x*l.x0.x + l.x0.z*l.x0.z
- (l.x0.y*(r2 - r1) + r2 + r1)*(l.x0.y*(r2 - r1) + r2 + r1)/4.0;
- size_t n = dmnsn_solve_polynomial(poly, 2, x);
+ size_t n = dmnsn_polynomial_solve(poly, 2, x);
if (n > 0) {
double t = x[0];