diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-10-19 13:59:24 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-10-30 18:11:22 -0400 |
commit | 8e3a7158ecae541692826e7b5998c8ffc810173a (patch) | |
tree | beda4f9f8604f77d0513d5fb02b7ddf53d203d09 /libdimension/torus.c | |
parent | e9810a7b1aae15320e58371b657a2f963562834d (diff) | |
download | dimension-8e3a7158ecae541692826e7b5998c8ffc810173a.tar.xz |
Make API more consistent.
Object methods should be dmnsn_<object>_<fn>().
Diffstat (limited to 'libdimension/torus.c')
-rw-r--r-- | libdimension/torus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/torus.c b/libdimension/torus.c index fc0f4ad..b3ccf9f 100644 --- a/libdimension/torus.c +++ b/libdimension/torus.c @@ -56,8 +56,8 @@ dmnsn_torus_bound_intersection(const dmnsn_torus_payload *payload, dmnsn_line l) smallcyl[0] = dist2 - rmin2; double x[4]; - size_t n = dmnsn_solve_polynomial(bigcyl, 2, x); - n += dmnsn_solve_polynomial(smallcyl, 2, x + n); + size_t n = dmnsn_polynomial_solve(bigcyl, 2, x); + n += dmnsn_polynomial_solve(smallcyl, 2, x + n); size_t i; for (i = 0; i < n; ++i) { @@ -105,7 +105,7 @@ dmnsn_torus_intersection_fn(const dmnsn_object *torus, dmnsn_line l, poly[0] = x0x0*x0x0 + R2*(R2 - 2.0*x0x0mod) - r2*(2.0*(R2 + x0x0) - r2); double x[4]; - size_t n = dmnsn_solve_polynomial(poly, 4, x); + size_t n = dmnsn_polynomial_solve(poly, 4, x); if (n == 0) return false; |