The mathematical beauty of hyperbezier curves

raphlinus1 pts0 comments

The mathematical beauty of hyperbezier curves - Linebender

The mathematical beauty of hyperbezier curves

Raph Levien, August 8, 2026

I have for many decades been fascinated by the prospect of a curve family better suited for interactive design than cubic Béziers.<br>In that search, I have come to a new-found respect for those Béziers.<br>In particular, though other curves like Euler spirals are better at representing smooth curves, they fall short at representing regions large curvature variation, where cubic Béziers excel.<br>The great strength of Béziers is their versatility.

So, to find a strictly better curve family, one requirement is clear: the family should contain both smooth curvature variation and higher-tension regions where curvature peaks.<br>Polynomial spirals, or Spiro curves, the subject of my PhD thesis, fail to achieve this goal.

After considerable search and rejecting a number of candidates, I now bring a proposal for a curve family which I think is a very strong candidate for supplanting cubic Béziers in 2D vector graphic design.

Without further ado, the curve family is represented by the Cesàro equation, specifying curvature as a function of arc length:

$$\kappa(s) = \frac{as+b}{(cs^2+ds+1)^{1.5}}$$

This curve behaves surprisingly similarly to a cubic Bézier, especially at smaller angles, but when pushed has very different behavior.<br>Overall it has smoother curvature variation and is more likely to have monotonic curvature.<br>It contains within it a few valuable analytic curves, and is also good at approximating a wide range of others.<br>The remainder of this blog post is devoted to showing its behavior in a wide range of contexts.

Approximation of cubic Béziers

The hyperbezier closely approximates cubic Béziers at low deflection angles at the endpoints.<br>I will show rather than try to present mathematic reasoning.<br>Below is an interactive tester that maps cubic Bézier control points to a corresponding hyperbezier.<br>The Bézier is shown in gray for comparison.

options

cubic Bézier<br>curvature comb

-->

At larger angles, and also when the "arm lengths" of the control handles get larger, the fit with the cubic Bézier is not particularly close, but the control scheme is still a useful way of setting the parameters for the hyperbezier curve (setting the polynomial coefficients directly is not at all intuitive).

Note that this parameter mapping is a first usable draft, and may not be the final version.<br>That said, in an interactive editing context, a perfect mapping is not required, as it's always possible to tweak the control points to reach any desired curve shape.

The details of the mapping can be found in the JavaScript source for this page, but the basic principle is that the arm lengths set the denominator, then the numerator is solved to make the endpoint tangents match.

Exact analytical curves

The most obvious analytical curve contained in the family is the Euler spiral, which is clearly attained when $c == d == 0$.<br>The Euler spiral has smooth curvature variation (it is a solution to the Minimum Variation Curve problem) and monotonic curvature.<br>An exact circular arc is also within the parameter space, simply when $a == 0$ as well.<br>Cubic Béziers, by comparison, only approximate circular arcs.

There a few other log-aesthetic curves lurking in the parameter space, meaning curvature is simply the arclength raised to a particular power.<br>Reachable exponents include -3, -2, -1.5, and -0.5 (alternatively, using the convention from the log-aesthetic papers, α can be 1/3, 1/2, 2/3, and 2).<br>The last of these is the circle involute, which is interesting because it is its own parallel curve, among other things.<br>And the first of these is the evolute of the Euler spiral.

The parameter mapping described above is designed so that when the control points lie on the "double parabola" in my Euler spiral parallel curve blog post, then the result is an exact Euler spiral.

Superellipses and squircles

A cubic Bézier can do superellipses up to a certain point, but does not approach a sharp corner; somewhere before then it starts developing additional inflection points, while a true superellipse or squircle is of course convex.

The hyperbezier can go all the way to a sharp corner, and visually looks pretty close to the superellipse.<br>It's not incredibly accurate (for moderate exponents like 5, the best cubic Bézier fit is slightly better, in fact), but visually does the right thing.<br>It's probably best to say that the hyperbezier is a subtly different squircle than the superellipse, neither better nor worse.

Hyperbola

Another fundamental curve is the hyperbola.<br>It is round at the turn, but curvature tails off and the curve reaches a linear asymptote on both sides.<br>Cubic Béziers do not fit this curve well, and do not exhibit that asymptotic behavior.<br>But the hyperbezier fits it naturally and with very high accuracy.

We can also appreciate the relationship mathematically.<br>In both, the curvature tails off as...

curve cubic curvature hyperbezier curves ziers

Related Articles