Freya Holmér
Enforcing second-derivative acceleration continuity across cubic Bézier splines triggers a cascading lock that destroys local control, forcing 3D graphics and CAD pipelines to abandon direct point interpolation in favor of B-splines.
AI-assisted summary of The Continuity of Splines — original source. Check the original for full context.
Source published:
Key ideas
- Parametric continuity ($C^n$) enforces derivative matching across knots, but attempting to enforce $C^2$ acceleration continuity across a cubic Bézier spline creates an unwieldy cascading lock that destroys local control. (20:25)
- Geometric continuity ($G^n$) evaluates curve shape independently of parameterization speed, making $G^2$ curvature continuity essential in CAD and automotive design to prevent visible cracks in specular reflections. (27:46)
- Different cubic spline families represent different tradeoffs in control point transformation: Bézier offers explicit handle manipulation, Hermite sets boundary velocities, Catmull-Rom provides smooth point interpolation at $C^1$, and B-splines achieve $C^2$ smoothness at the expense of interpolating control points. (57:37)
- Any isolated uniform cubic segment can be identically parameterized as a Bézier, Hermite, Catmull-Rom, B-spline, or projectile trajectory; a spline is defined not by an individual segment, but by its continuity contract across joins. (56:35)
Detailed notes
## Background Published on YouTube by educator and tool developer Freya Holmér on December 7, 2022, this video serves as an exhaustive, visually driven deep dive into the mathematical nature and practical implementation of splines. As detailed in the description, the project expanded far beyond its original scope into a year-long research endeavor built in Unity using her vector rendering library Shapes and math library Mathfs, presenting a comprehensive guide despite the severe personal burnout experienced during production.
## TL;DR Holmér deconstructs how smooth curves and piecewise splines are formulated, starting with iterative linear interpolation and the mathematical structures of cubic Bézier curves. She unpacks the critical hierarchy of continuity, distinguishing parametric continuity ($C^0$ through $C^3$) from geometric continuity ($G^1$ and $G^2$) while illustrating why $C^2$ continuity cannot be achieved on cubic Bézier splines without causing an unmanageable cascading loss of local control. Venturing into alternative spline formulations, the lesson systematically evaluates Hermite, Cardinal, Catmull-Rom, and uniform cubic B-splines by deriving their characteristic matrices and analyzing basis functions to resolve trade-offs between point interpolation and derivative smoothness.
## Atmosphere & style The presentation strikes an engaging balance between meticulous academic precision and intimate, witty warmth, elevated by polished custom real-time visual tools that make abstract linear algebra and calculus intuitively legible. Holmér's delivery is deeply enthusiastic yet candid, openly sharing the grueling labor behind the project, venting playfully when mathematical constraints 'yeet' control points off into nowhere, and admitting the burnout that stalled production. Watching the video feels like sitting through a masterclass taught by a brilliantly inventive developer who treats every curve derivative with rigorous respect while remaining delightfully unpretentious.
## Bulletin - [20:25](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1225s) Parametric continuity ($C^n$) enforces derivative matching across knots, but attempting to enforce $C^2$ acceleration continuity across a cubic Bézier spline creates an unwieldy cascading lock that destroys local control. - [27:46](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1666s) Geometric continuity ($G^n$) evaluates curve shape independently of parameterization speed, making $G^2$ curvature continuity essential in CAD and automotive design to prevent visible cracks in specular reflections. - [57:37](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3457s) Different cubic spline families represent different tradeoffs in control point transformation: Bézier offers explicit handle manipulation, Hermite sets boundary velocities, Catmull-Rom provides smooth point interpolation at $C^1$, and B-splines achieve $C^2$ smoothness at the expense of interpolating control points. - [56:35](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3395s) Any isolated uniform cubic segment can be identically parameterized as a Bézier, Hermite, Catmull-Rom, B-spline, or projectile trajectory; a spline is defined not by an individual segment, but by its continuity contract across joins.
## Key takeaways - [01:17](https://www.youtube.com/watch?v=jvPPXbo87ds&t=77s) Mathematical paths and splines underpin diverse computational systems, including game traversal mechanics, UI animations, skeletal rigs, and vector typography. - [03:54](https://www.youtube.com/watch?v=jvPPXbo87ds&t=234s) A cubic Bézier curve evaluates four control points via nested linear interpolations using De Casteljau's algorithm, Bernstein polynomials, or power basis matrices. - [07:41](https://www.youtube.com/watch?v=jvPPXbo87ds&t=461s) High-degree Bézier curves suffer from a total lack of local control and severe numerical instability because their basis polynomials exert global influence across the entire curve. - [12:11](https://www.youtube.com/watch?v=jvPPXbo87ds&t=731s) Cubic Bézier splines restore local control by chaining cubic segments end-to-end, isolating interior control point adjustments to individual segments. - [15:28](https://www.youtube.com/watch?v=jvPPXbo87ds&t=928s) $C^0$ continuity requires curve endpoints to meet at the exact same spatial coordinates, establishing positional connection without derivative guarantees. - [17:32](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1052s) $C^1$ velocity continuity requires mirrored tangent handles to equalize velocity vectors across joins, eliminating speed jumps at the cost of one degree of freedom per boundary. - [20:25](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1225s) Enforcing $C^2$ continuity on a cubic Bézier spline locks downstream control points in a cascading chain reaction, demonstrating that cubic Béziers cannot maintain both $C^2$ continuity and local control. - [23:46](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1426s) Achieving $C^3$ continuity locks all degrees of freedom in adjacent segments, causing the piecewise spline to collapse into a single global $C^\infty$ polynomial. - [26:50](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1610s) Geometric continuity ($G^n$) evaluates smoothness purely based on curve shape rather than parameter speed, making $G^1$ correspond to matched unit tangents. - [27:46](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1666s) Tangent alignment alone ($G^1$) fails the reflection test on 3D surfaces; $G^2$ curvature continuity, defined via the osculating circle, is required to prevent reflection seams. - [38:06](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2286s) The rule that parametric continuity ($C^n$) implies geometric continuity ($G^n$) holds only for regular curves; if velocity drops to zero, a curve can form a sharp geometric cusp while remaining parametrically continuous. - [39:25](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2365s) Hermite splines define segments by boundary positions and velocities, guaranteeing $C^1$ continuity while allowing straightforward mathematical conversion to Bézier handles. - [44:09](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2649s) Linear splines are limited to $C^0$ continuity but possess unique superpowers, including trivial arc-length parameterization for constant-speed traversal. - [48:20](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2900s) Catmull-Rom splines derive automatic tangents from neighboring points, providing an intuitive $C^1$ interpolating spline well-suited for camera paths and waypoints. - [53:15](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3195s) Uniform cubic B-splines achieve $C^2$ acceleration continuity while preserving local control, but sacrifice direct interpolation of their control points. - [57:37](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3457s) A single isolated curve is not inherently a spline; splines represent transformations of control points governed by continuity contracts across segments. - [01:01:35](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3695s) Non-uniform knot spacing prevents unwanted cusps and loops in Catmull-Rom splines, while NURBS introduce control point weights to represent exact conic sections.
## Detailed walkthrough ### [00:00](https://www.youtube.com/watch?v=jvPPXbo87ds&t=0s) The Question of Smoothness
Freya Holmér opens with an innocent-sounding problem that consumed an entire year of her life: “How do you define a smooth path?” While paths have been an essential tool throughout human history—and are ubiquitous in fields like game development—the concepts beneath them turn out to be unexpectedly intricate. What does it actually mean for something to be a "path," and what rigorous mathematical meaning do we assign to the word "smooth"?
Exploring these questions led her down a grueling research path involving stacks of academic papers, pages of handwritten notes, and uncovering errors across numerous established online resources. The sheer scale and difficulty of the subject pushed her to burnout, but reaching the end of that journey allowed her to synthesize this deep dive into the continuity of splines.
[01:17](https://www.youtube.com/watch?v=jvPPXbo87ds&t=77s) Examples of Paths in the Digital World
Paths appear across almost every domain of software and digital graphics, often disguising themselves under different terminology: - Conveyor belts winding through factories in games like *Satisfactory*. - Rollercoasters, which require a path that governs not only 3D position over time, but orientation and rotation as well. - 2D character and UI animations that move elements fluidly across a screen. - Skeletal animation systems in game engines, where distinct animation curves govern the transformation of every single joint in a character's rig. - Modern web typography, where every glyph in every font on screen is defined via vector path outlines. - Art application features like gradient maps, which function as mathematical paths taking a single input of luminosity and outputting coordinates within a multidimensional color space.
Though drawn from wildly divergent software domains, every single one of these systems relies on the same core mathematical construct: they are all splines.
[02:16](https://www.youtube.com/watch?v=jvPPXbo87ds&t=136s) Lerp and Quadratic Bézier Curves
The simplest path between two points is a straight line segment. To find intermediate locations along that segment, one performs a linear interpolation—commonly abbreviated as *lerp*. The lerp function takes a scalar parameter, the percentage $t \in [0, 1]$, where $t = 0$ corresponds strictly to the start point and $t = 1$ to the endpoint.
```mermaid flowchart LR accTitle: Linear Interpolation Flow accDescr: Linear interpolation blends two points using parameter t to yield a straight segment. P0["Point P₀"] -->|"lerp(P₀, P₁, t)"| Res["Interpolated Point"] P1["Point P₁"] -->|"lerp(P₀, P₁, t)"| Res ```
However, practical applications require curves rather than rigid lines. Introducing a third point yields two connected line segments. By evaluating the same lerp function at identical parameter values of $t$ on both segments, we produce two moving points. Drawing a new line between those two derived points and lerping across it once more with the same parameter $t$ traces out a smooth curve. As Freya observes: “This, is the magic of Bézier curves. Using only linear interpolation, we end up with a smooth curve.” This specific construction produces a quadratic Bézier curve.
[03:54](https://www.youtube.com/watch?v=jvPPXbo87ds&t=234s) Cubic Bézier Curves and Their Formulations
Adding one additional control point—making four points total, designated $P_0, P_1, P_2, P_3$—and repeating the iterative interpolation yields a cubic Bézier curve. Three initial line segments lerp into two, which lerp into one final segment, whose interpolated point traces the cubic curve as $t$ travels from $0$ to $1$. The cubic Bézier is the undisputed industry workhorse: “The cubic Bézier is by far, the most common curve,” powering almost every vector graphics tool and digital font format in existence.
Mathematically, this curve can be expressed in several distinct but equivalent ways:
1. **De Casteljau’s Algorithm:** Evaluating points via repeated geometric lerping. As Freya characterizes it: “you just lerp until you run out of things to lerp!” This formulation is famously intuitive and highly numerically stable, though it can become computationally costly when evaluated repeatedly. 2. **Bernstein Form:** Rearranging the nested linear interpolations to group them as factors multiplying each original control point yields cubic polynomials known as the Bernstein basis polynomials. Geometrically, this means scaling each point's position vector by a polynomial weighting function and summing them. These functions form a convex combination—the polynomial weights always sum to exactly $1$ for any value of $t$, meaning influence shifts smoothly from $P_0$ having complete dominance at $t = 0$ to $P_3$ having complete dominance at $t = 1$. 3. **Monomial / Power Basis Form:** Factoring by powers of $t$ ($1, t, t^2, t^3$) groups terms into constant coefficient vectors. Geometrically, this represents a base position $P_0$ added to three separate vectors scaled respectively by $t$, $t^2$, and $t^3$. While less visually intuitive, it is ideal for performance: the coefficient vectors can be precomputed and cached whenever control points remain static. 4. **Matrix Form:** Expressing the transformation as a characteristic matrix isolates the underlying constants, revealing symmetries and structural elegance:
$$\begin{bmatrix} 1 & t & t^2 & t^3 \end{bmatrix} \begin{bmatrix} 1 & 0 & 0 & 0 \\ -3 & 3 & 0 & 0 \\ 3 & -6 & 3 & 0 \\ -1 & 3 & -3 & 1 \end{bmatrix} \begin{bmatrix} P_0 \\ P_1 \\ P_2 \\ P_3 \end{bmatrix}$$
Multiplying the power vector by the characteristic matrix generates the Bernstein polynomials; multiplying the characteristic matrix by the control point matrix yields the monomial coefficients.
[07:41](https://www.youtube.com/watch?v=jvPPXbo87ds&t=461s) Arbitrary Degree Béziers and the Loss of Local Control
De Casteljau's algorithm naturally generalizes to any count of points. Lerping across a chain of thirteen points down to a single terminal point yields a degree-12 (dodecick) Bézier curve. Its basis polynomials likewise shift influence smoothly across the sequence from start to finish.
```mermaid flowchart TD accTitle: De Casteljau Cascade for Cubic Bézier accDescr: Recursive reduction of control points P0 through P3 to a single point using parameter t. subgraph S1["Initial Points"] P0["P₀"] P1["P₁"] P2["P₂"] P3["P₃"] end subgraph S2["First Lerp Step"] L01["P₀₁"] L12["P₁₂"] L23["P₂₃"] end subgraph S3["Second Lerp Step"] L012["P₀₁₂"] L123["P₁₂₃"] end subgraph S4["Final Point"] LFinal["Point(t)"] end P0 --> L01 P1 --> L01 P1 --> L12 P2 --> L12 P2 --> L23 P3 --> L23 L01 --> L012 L12 --> L012 L12 --> L123 L23 --> L123 L012 --> LFinal L123 --> LFinal ```
However, high-degree Béziers suffer from severe practical deficiencies when modeling complex paths, such as routing a road between towns through rugged terrain: - **Zero Local Control:** Every basis polynomial has global support across the interval $(0, 1)$. Moving a single control point shifts the entire curve globally, making fine local adjustments impossible: “In other words, we have no local control. Every movement of every point affects the entire curve.” - **Lack of Interpolation:** The curve fails to pass directly through intermediate control points, making it unintuitive to constrain the path along specific milestones. - **Computational Cost & Instability:** High polynomial degrees trigger severe floating-point numerical instability and require expensive calculations.
High-degree curves are fundamentally unsuited for complex routing tasks. The practical solution is not to escalate the polynomial degree, but to link multiple modest, low-degree curves together end-to-end.
[09:37](https://www.youtube.com/watch?v=jvPPXbo87ds&t=577s) Bézier Splines and Spline Anatomy
Connecting individual cubic Bézier curves end-to-end creates a piecewise construct known as a Bézier spline. Rather than relying on a solitary curve, multiple cubic segments cooperate, sharing interface points.
Operating across a composite spline requires restructuring the parameter space: - **Global Parameter ($u$):** While an individual curve accepts a local percentage $t \in [0, 1]$, the spline defines an extended parameter $u$ spanning the entire path length. - **Index vs. Local Time:** On a uniform spline, each curve segment is allocated a parameter interval of length 1. For any global input $u$, the integer component $\lfloor u \rfloor$ determines the curve index, while the fractional part $u - \lfloor u \rfloor$ serves as the local $t$-parameter inside that specific curve.
The structural vocabulary of splines consists of several core components: - **Parameter Space:** The 1D scalar domain across which the input coordinate $u$ lives. - **Control Points:** The spatial coordinates that determine the geometry of each curve segment. - **Joins / Knots:** The physical locations where consecutive curve segments meet end-to-end. While knots frequently coincide with control points in Bézier splines, this is not an invariant rule across other spline formulations. - **Knot Values and Knot Intervals:** Knot values are the specific coordinates in parameter space where transitions occur; the distance between two adjacent values is the knot interval. - **Uniform vs. Non-Uniform Splines:** In uniform splines, all knot intervals have identical length (typically 1). Non-uniform splines allow variable knot spacing, introducing substantial mathematical complexity.
[12:11](https://www.youtube.com/watch?v=jvPPXbo87ds&t=731s) Local Control and Spline Flexibility
Mapping the basis functions into parameter space demonstrates how a cubic Bézier spline resolves the limitations of a single high-degree Bézier curve. Examining the weight of an interior control point reveals that its influence lies entirely within the span of that specific segment; modifying it affects only that single curve while leaving the rest of the spline completely untouched. Even for shared endpoints where the influence is twice as wide across two adjacent curve segments, it never propagates beyond them. As Freya Holmér puts it, “So with the cubic Bézier spline, we’ve regained local control!”
Because the spline chains together third-degree curves, evaluating points does not grow more computationally expensive as the total path length increases. Rather than calculating an increasingly complex, high-degree polynomial, the engine merely evaluates one standard cubic Bézier at a time. Furthermore, the path directly interpolates every third control point instead of only the very start and end of the entire chain, giving designers predictable anchors for complex shapes. These mechanics explain why cubic Bézier splines serve as the bedrock of modern vector design tools, including font rendering engines and the Photoshop pen tool.
```mermaid flowchart TD accTitle: Tangent Point Configurations accDescr: Three common geometric configurations for tangent handles surrounding a Bézier spline join.
subgraph Tangents["Tangent Handle Configurations at Curve Joins"] direction TB A["Split / Broken Tangents\n(Angles & lengths independent)"] -->|Produces| D["Sharp Corners\n(Discontinuous tangents)"] B["Aligned Tangents\n(Collinear through join point)"] -->|Produces| E["Smooth Heading\n(Shared direction, different speeds)"] C["Mirrored Tangents\n(Collinear & equidistant)"] -->|Produces| F["Continuous Velocity\n(Equal speed & direction)"] end ```
The versatility of the cubic Bézier curve relies heavily on the behavior of the two control points flanking each seam, frequently referred to as tangent handles. These points typically assume three distinct configurations: - **Split / Broken Tangents:** Handled independently to produce sharp, distinct corners. - **Aligned Tangents:** Constrained collinearly through the seam to ensure both curves share an identical directional heading at the join. - **Mirrored Tangents:** Constrained both collinearly and at equal Euclidean distances from the shared seam, keeping tangent lengths strictly symmetric. - **Linear Segments:** Formed deliberately by placing the two intermediate control handles precisely one-third and two-thirds along the straight line connecting the endpoints. - **Approximated Circles:** Constructed to close tolerances using four cubic Bézier arcs, although they remain mathematical approximations rather than true analytical circles.
---
[15:07](https://www.youtube.com/watch?v=jvPPXbo87ds&t=907s) Introduction to Continuity and $C^0$ (Positional Continuity)
When animating an object such as a cube along an aligned-tangent spline, visual hitches become apparent at the curve transitions. The animated object appears to suddenly jump in speed whenever it crosses a join. This phenomenon introduces the formal concept of continuity, which fundamentally measures how smoothly two adjacent curve segments connect across parameter space. When the endpoint of an incoming curve coincides with the starting point of the subsequent curve, the spline exhibits positional continuity, designated as $C^0$.
```mermaid flowchart LR accTitle: Derivatives of Position accDescr: Physical definitions of positional derivatives with respect to the spline parameter t.
P["Position P(t)\n[0th Derivative]"] -->|"d/dt"| V["Velocity P'(t)\n[1st Derivative]"] V -->|"d/dt"| A["Acceleration P''(t)\n[2nd Derivative]"] A -->|"d/dt"| J["Jolt / Jerk P'''(t)\n[3rd Derivative]"] ```
If the curve endpoints are pulled apart, the spline breaks entirely and ceases to be $C^0$. Evaluating the motion requires examining derivatives with respect to the evaluation parameter $t$. Using the matrix formulation of a cubic Bézier, taking the derivative is straightforward: applying the standard power rule directly to the powers-of-$t$ basis vector yields the curve derivatives. In spatial motion, these derivatives map directly to classic kinematic terms: - **0th Derivative (Position):** The spatial location along the path, denoted $P(t)$. - **1st Derivative (Velocity):** The rate and direction of spatial change with respect to parameter progress, denoted $P'(t)$. - **2nd Derivative (Acceleration):** The rate of change of velocity, dictating physical force and turning rates, denoted $P''(t)$. - **3rd Derivative (Jolt / Jerk):** The rate of change of acceleration, denoted $P'''(t)$.
---
[17:32](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1052s) $C^1$ (Velocity Continuity)
Plotting the velocity vector across an aligned-tangent join reveals an immediate mathematical problem: the velocity graph contains an open gap. The vector direction points consistently through the seam because the handles are aligned, but the length of the tangent vector jumps instantaneously, creating a step discontinuity in speed. To eliminate this jump, the tangent handles must be strictly mirrored across the anchor point. Once mirrored, the velocity curve aligns seamlessly across the boundary, elevating the spline to $C^1$ continuity.
```mermaid flowchart LR accTitle: C1 Constraint Geometry accDescr: Algebraic derivation showing how P4 is fixed by reflecting P2 across join point P3.
P2["Handle P₂\n(End of Curve A)"] -->|Reflected across| P3["Join Point P₃\n(Shared Anchor)"] P3 -->|Determines| P4["Handle P₄ = 2P₃ - P₂\n(Start of Curve B)"] ```
Continuity classes build hierarchically: every $C^1$ continuous path must inherently satisfy $C^0$ continuity. Disconnecting the position at a seam removes both $C^0$ and $C^1$ status simultaneously, regardless of whether the incoming and outgoing velocity vectors share the same magnitude and direction. Algebraically, enforcing $C^1$ continuity across a seam between curve $A$ and curve $B$ requires that the terminal velocity of curve $A$ equals the initial velocity of curve $B$:
$$A'(1) = B'(0)$$
Substituting the cubic Bézier polynomial formulations into this equation establishes that point $P_4$ must equal $P_2$ reflected across the anchor point $P_3$:
$$P_4 = P_3 + (P_3 - P_2) = 2P_3 - P_2$$
Constraining $P_4$ to mirror $P_2$ removes its degrees of freedom. As Freya Holmér notes regarding this tradeoff, “Now, I’ve made $P_4$ grayed out, as we’ve actually lost a little bit of control now if we want this join to have $C^1$ continuity, because $P_4$ is now fully determined by $P_2$ and $P_3$, but, it’s a little sacrifice we’re willing to make.”
---
[20:25](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1225s) $C^2$ Continuity and the Cascading Loss of Local Control
Even after establishing $C^1$ velocity continuity, animated objects traversing the seam still display an abrupt, unnatural snap when changing direction. Because turning requires physical acceleration, analyzing the second derivative $P''(t)$ across the seam reveals another severe step discontinuity. To achieve $C^2$ continuity, the spline must equate the terminal acceleration of the incoming curve with the initial acceleration of the outgoing curve:
$$A''(1) = B''(0)$$
Solving this second-derivative boundary condition sets a direct constraint on the placement of control point $P_5$:
$$P_5 = P_1 + 4(P_3 - P_2)$$
Geometrically, this requires taking the vector pointing from $P_2$ to $P_3$, scaling it by a factor of 4, and projecting it forward from $P_1$. While this mathematical condition resolves acceleration spikes at a single seam, applying it across an entire multi-segment spline causes a catastrophic failure of local control.
```mermaid flowchart TD accTitle: C2 Constraint Cascade accDescr: Cascading chain reaction where moving initial control points fully locks all subsequent downstream points.
subgraph CurveA["Curve A Control Points"] P1["P₁"] P2["P₂"] P3["P₃ (Join)"] end
subgraph CurveB["Curve B Constrained Points"] P4["P₄ = 2P₃ - P₂ (C¹)"] P5["P₅ = P₁ + 4(P₃ - P₂) (C²)"] P6["P₆ (Join)"] end
subgraph CurveC["Curve C Cascaded Locks"] P7["P₇ (Locked by C¹)"] P8["P₈ (Locked by C²)"] P9["P₉ (Join)"] end
P1 & P2 & P3 --> P4 P1 & P2 & P3 --> P5 P5 --> P7 P4 & P5 & P6 --> P8 ```
Enforcing $C^1$ and $C^2$ continuity at every seam triggers a domino effect throughout the spline's geometry: - $P_4$ is locked by $P_2$ and $P_3$ to maintain $C^1$ continuity. - $P_5$ is locked by $P_1$, $P_2$, and $P_3$ to satisfy $C^2$ continuity. - Downstream handle $P_7$ is locked by $P_5$ across the subsequent seam for $C^1$. - Control point $P_8$ is locked by $P_4$, $P_5$, and $P_6$ to maintain $C^2$ across the next seam. - Control point $P_{11}$ is locked by $P_7$, $P_8$, and $P_9$.
When these conditions propagate down the line, user manipulation becomes virtually impossible. Nudging an early control point by a fraction of a millimeter causes downstream handles to swing wildly out of bounds. Holmér highlights the absurdity of this behavior, remarking: “As you can see, it yeets off to fucking wherever, making it absolutely useless as a spline.” Yet the motion remains exceptionally fluid: “You can’t make a cubic Bézier $C^2$ continuous, it is, literally impossible, without losing local control. And, having that control is the whole point of using splines in the first place!”
---
[23:46](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1426s) $C^3$ Continuity and $C^\infty$ Extrapolation
Pushing the boundary conditions to match third derivatives yields jolt continuity, defined as $C^3$:
$$A'''(1) = B'''(0)$$
Solving the algebraic requirements for the third derivative binds $P_6$ entirely to the preceding control points: $P_0$, $P_1$, $P_2$, and $P_3$. Geometrically, this requires taking the vector $(P_3 - P_0)$, adding the sum of $(P_3 - P_2)$ and $(P_1 - P_2)$, multiplying that combined vector by 6, and offsetting it from the seam. Under these conditions, the artist loses control over $P_6$, $P_9$, and $P_{12}$.
```mermaid flowchart LR accTitle: Continuity Spectrum accDescr: Spectrum of continuity levels from non-continuous curves to infinitely smooth single-polynomial curves.
C0["C⁰: Positional\n(Curves touch)"] --> C1["C¹: Velocity\n(Mirrored tangents)"] C1 --> C2["C²: Acceleration\n(Local control collapses)"] C2 --> C3["C³: Jolt\n(Degrees of freedom hit 0)"] C3 --> Cinf["C∞: Extrapolation\n(Single unified polynomial)"] ```
At this stage, the spline ceases to act like a spline. When every degree of freedom along the subsequent curve is locked to the third derivative of the preceding segment, curve $B$ becomes mathematically identical to evaluating the single polynomial of curve $A$ beyond $t > 1$. Because there are no longer true piecewise boundaries or distinct transitions between different polynomial functions, every derivative is smooth and continuous. The curve collapses into a single, global $C^\infty$ polynomial.
- **Broken / Disconnected:** The curves do not meet in space; no continuity exists. - **$C^0$ Continuity:** Curves share identical positional endpoints at seams ($A(1) = B(0)$), but velocity vectors may diverge in speed and direction. - **$C^1$ Continuity:** Velocity vectors match across the seam ($A'(1) = B'(0)$), requiring mirrored tangent handles. - **$C^2$ Continuity:** Acceleration vectors match ($A''(1) = B''(0)$), eliminating sudden directional turning snaps at the expense of local control. - **$C^\infty$ Continuity:** Interior points along any smooth polynomial span possess infinite continuity by default; continuity classifications exist specifically to diagnose the mathematical smoothness across the joins between segments.
[25:52](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1552s) The Shift from Parametric to Geometric Continuity
Parametric continuity ($C^n$) requires that two adjacent curve segments, curve $A$ and curve $B$, have identical zeroth through $n^{\text{th}}$ derivatives at their join point. While this concept is central to analyzing splines—serving as the primary motivation for exploring different spline varieties—it measures behavior strictly with respect to the curve’s parameter, $t$. In physical terms, $C^1$ continuity enforces not only that curves share the same heading, but that they pass through the joint at the exact same velocity and speed.
However, in applications like vector graphics or 2D drafting, parameterization speed is irrelevant. If a path is used purely to define a visual contour, sudden changes in velocity along the path do not matter as long as the drawn visual shape remains smooth. This motivates the study of geometric continuity, which is evaluated entirely independent of parameter speed. As Freya Holmér puts it: “Continuity is absolutely central to the discussion of splines, and it’s actually the primary motivator for investigating multiple different types of splines.”
[26:50](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1610s) Tangent Continuity ($G^1$) and Aligned Tangents
When analyzing control points on Bézier curves, mirrored tangent handles yield $C^1$ continuity because their opposing velocity vectors have identical magnitudes and directions. Broken tangent handles yield only $C^0$ continuity because they produce sharp corners. But aligned tangent handles—where the handles point in opposite directions along a shared line but have different lengths—represent a sudden jump in velocity length (speed).
To isolate the shape from the parameter speed, the velocity vector is normalized by dividing it by its magnitude, forcing its length to exactly $1$. Adding the 2D normal vector makes this behavior easy to visualize. Because normalizing removes the jump in speed, the unit tangent and normal vectors glide across an aligned joint without any sudden changes. This baseline shape continuity is called tangent continuity, designated as $G^1$. As Freya observes: “If we’re using these for vector graphics, we don’t really care about ‘speed’—we only care about the shape it creates in the end.”
```mermaid flowchart TD accTitle: Progression of Geometric Continuity accDescr: Flowchart showing positional, tangent, and curvature continuity requirements and visual tools. subgraph GeometricContinuity["Geometric Continuity Progression"] G0["G⁰: Positional Continuity<br>(Curves meet at shared point)"] G1["G¹: Tangent Continuity<br>(Normalized tangents align; speed ignored)"] G2["G²: Curvature Continuity<br>(Osculating circles & curvature comb match)"] G0 --> G1 G1 --> G2 end subgraph Diagnostics["Inspection & Diagnostics"] Comb["Curvature Combs"] Refl["Reflection / Zebra Line Test"] G2 -.-> Comb G2 -.-> Refl end ```
[27:46](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1666s) The Reflection Test and the Need for $G^2$
The step from $G^1$ to $G^2$ continuity is far more than a theoretical exercise; it is an essential requirement in industrial design for reflective consumer goods such as smartphone casings, car bodies, and even the subtle curves of the Apple app icon. To demonstrate why $G^1$ continuity fails on shiny objects, the curve can be extruded into a three-dimensional surface inside a studio environment with sharp overhead lighting and a reflective metallic shader.
Despite having perfectly aligned tangents across the seam, a glaring flaw appears on the surface: the reflection lines crack and display an abrupt kink directly at the joint. Switching the environment reflection to a field of high-contrast dots exposes the disruption even more dramatically. As Freya points out when inspecting the broken reflection across a tangent-aligned seam: “Isn’t it enough to just, align the tangents? Clearly, it’s not.”
- $G^1$ surfaces produce sharp visual seams in specular highlights and environmental reflections. - Aligned tangents ensure directional smoothness, but they do not guarantee smooth visual transitions under studio lighting. - The dot-pattern reflection test reveals discontinuous jumps across seams that appear seamlessly connected in flat 2D wireframes.
[28:56](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1736s) Seams in Circular Arcs and Tangent Angle Analysis
A surprisingly common misconception is that circular arcs represent the ultimate smooth primitive. When a perfect circular arc is joined directly to a flat straight line with matched tangent vectors, an identical reflection crack appears at the seam. Even though the circle is geometrically ideal, the transition possesses only $G^1$ continuity.
Tracking the surface normals and tangent angles along this composite path explains why this tear occurs. On the circular arc, the tangent angle turns at a constant, steady rate. On the flat straight line segment, the angle does not change at all. At the exact seam where the arc hits the line, the angular change stops dead in its tracks instantaneously. Circles are the special case where angle changes at a fixed non-zero rate, while lines are the special case where angular change is zero. Transitioning instantly between the two causes an angular rate shock, creating an unsightly visible seam.
[30:47](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1847s) Curvature and the Osculating Circle
To evaluate and resolve this defect without reintroducing parameter speed, one must measure curvature ($\kappa$). At any given point along a smooth curve, there is a unique matching circle known as the *osculating circle* (from the Latin word for "kissing") that shares the exact same tangent and curvature at that point. The radius of this osculating circle is the reciprocal of the curvature ($r = \frac{1}{\kappa}$).
Mathematically, curvature in two dimensions is defined as the determinant of velocity and acceleration divided by the speed cubed:
$$\kappa = \frac{\det(\mathbf{v}, \mathbf{a})}{\|\mathbf{v}\|^3}$$
Freya notes that this numerator determinant is commonly called the "2D cross product" or perpendicular dot product (or, more formally, the wedge product resulting in a bivector). Plotting the osculating circle along various spline segments demonstrates two key facts: a joint with only positional continuity ($C^0$) can occasionally happen to have continuous curvature, while a joint with velocity continuity ($C^1$) is by no means guaranteed to have continuous curvature.
[32:26](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1946s) Curvature Combs and Algebraic $G^1$ vs. $G^2$
Curvature is routinely visualized in CAD and vector software using a "curvature comb," where normal needles sprout along the curve. The length of each needle represents the magnitude of curvature at that sample, growing tall around tight turns and shrinking to zero along straight sections. When examining a $G^1$ joint with a curvature comb, the comb spikes to two completely different heights on either side of the joint, confirming that curvature is discontinuous.
Enforcing $G^1$ on a cubic Bézier spline algebraically requires placing the first control point of segment $B$ ($P_4$) along the line defined by segment $A$'s final two control points ($P_2 \to P_3$), scaled by an arbitrary positive scalar:
$$P_4 = P_3 + \beta_1 (P_3 - P_2), \quad \beta_1 > 0$$
The parameter $\beta_1$ provides one degree of freedom; setting $\beta_1 = 1$ mirrors the tangent, while any other positive value scales it. Enforcing $G^2$ continuity requires constraining the next control point ($P_5$) as well, which introduces a second degree of freedom, $\beta_2$. When $P_5$ is solved using both $\beta_1$ and $\beta_2$, the needles of the curvature comb instantly snap together across the joint, becoming fully continuous. Placing this $G^2$ surface back beneath studio lights completely eliminates the reflection seam, passing both the stripe and dot reflection tests cleanly. However, this comes at the cost of losing local control over subsequent control points down the spline chain.
- Surfaces meeting $G^2$ continuity or higher are often referred to in automotive and product styling as "Class-A surfaces." - $G^3$ continuity requires the rate of change of curvature to be continuous, causing the curvature comb itself to be tangent-continuous ($G^1$). - Industrial workflows rarely pursue continuity beyond $G^3$ because mathematical complexity increases dramatically while visual benefits yield diminishing returns.
[35:40](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2140s) Formal Definitions and the Continuity Hierarchy
A formal definition of geometric continuity can be framed through parameter remapping: two curves $A$ and $B$ are $G^n$ continuous at a joint if there exists a monotonic reparameterization function $g(t)$ such that curve $A(t)$ and curve $B(g(t))$ achieve full parametric $C^n$ continuity. In simple terms, if a curve's speed can be retroactively rewritten along its length so that all its derivatives match up to order $n$, the geometry itself is already $G^n$ continuous.
The hierarchy of continuity chains upward systematically: - $C^0$ and $G^0$ are identical: positional continuity (the endpoints touch). - $C^1$ is velocity continuity (requires continuous position and continuous first derivative). - $G^1$ is tangent continuity (requires continuous position and aligned normalized tangents). - $C^2$ is acceleration continuity (requires continuous position, velocity, and second derivative). - $G^2$ is curvature continuity (requires continuous osculating circles and continuous curvature magnitude). - $C^3$ is jolt continuity (the third derivative is continuous). - $G^3$ is continuity of the rate of change of curvature (sometimes improperly referred to as "torsion" or "acceleration" continuity).
Because geometric continuity imposes fewer constraints on the curve’s internal speed, parametric continuity is strictly more demanding. Under standard conditions, $C^n$ continuity inherently implies $G^n$ continuity ($C^1 \implies G^1$, $C^2 \implies G^2$), but geometric continuity does not imply parametric continuity.
[38:06](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2286s) The Regular Curve Caveat and Cusps
The rule that parametric continuity ($C^n$) guarantees geometric continuity ($G^n$) carries one critical mathematical caveat: the underlying curves must be *regular*. In differential geometry, a regular curve is strictly defined as a curve where velocity is never zero ($\|\mathbf{v}(t)\| \neq 0$).
When the speed drops to zero, the formulas defining geometric properties collapse. Both normalizing the velocity to compute the unit tangent ($\frac{\mathbf{v}}{\|\mathbf{v}\|}$) and calculating the curvature ($\frac{\det(\mathbf{v}, \mathbf{a})}{\|\mathbf{v}\|^3}$) require dividing by speed, resulting in division by zero whenever velocity reaches zero. In Bézier curves, a pathological configuration can be created where control points force the curve to come to an instantaneous stop. Although the curve retains high parametric continuity mathematically, the normalized tangent flips direction instantaneously at that standstill point. This produces a sharp point known as a cusp, creating an obvious geometric tangent discontinuity despite the curve’s formal $C^n$ parametric smoothness. As Freya warns: “A regular curve is one where the velocity is never 0—in other words, it never stands perfectly still.”
[39:25](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2365s) Beyond Bézier: The Hermite Spline
Equipped with the mathematical framework of continuity, the exploration moves beyond the Bézier spline into the broader universe of curves. Freya Holmér questions the intuitive nature of Bézier control points: “While the Bézier curve is useful, its points are pretty, strange, are they not?” Aside from the start and end anchors, intermediate Bézier control points do not correspond directly to physical landmarks. To design a curve that makes physical sense, one can instead specify boundary conditions in position and velocity—setting a starting position $P_0$, an ending position $P_1$, an initial velocity $v_0$, and a terminal velocity $v_1$—and then solve for the path connecting them. Such a construct is especially valuable when simulating physical systems or interpolating network movement data, as it automatically calculates the requisite acceleration and jolt to satisfy those boundary constraints.
Constructing this curve is straightforward algebra. Setting four constraints allows one to solve for four unknown coefficients ($a, b, c, d$) of a cubic polynomial. Evaluating the polynomial at $t = 0$ immediately forces $d = P_0$, because all higher-order terms vanish; evaluating the first derivative at $t = 0$ forces $c = v_0$. Solving the remaining equations yields the characteristic matrix of the spline, preserving the standard matrix formulation: a row vector of powers of $t$ on the left, a column vector of control values on the right, and a characteristic matrix in the middle that functions as the spline's unique algebraic fingerprint. Multiplying the $t$-vector by this characteristic matrix produces the four basis functions.
This construction is known as the Hermite spline. As Holmér remarks regarding its pronunciation: “Or, I mean, if you’re French you’re probably dying inside right now, technically I think it’s supposed to be pronounced Hermite, but nobody says it like that okay so cut me some slack.” Because each spline join shares an identical velocity on both sides, the Hermite spline is inherently $C^1$ continuous and strictly interpolates every specified point and velocity. However, analyzing its acceleration—the rate of change of velocity—reveals an instantaneous discontinuity across segment joins. Holmér concludes: “In other words, while this spline doesn’t meet the criteria for $C^2$ continuity, it is always $C^1$.” Some implementations also allow separate incoming and outgoing velocity vectors per knot, permitting deliberate $C^0$ corners when desired.
- **Boundary Constraints**: Start point $P_0$, end point $P_1$, start velocity $v_0$, end velocity $v_1$. - **Continuity Rating**: Guaranteed $C^1$ (velocity continuous); fails $C^2$ due to abrupt steps in acceleration. - **Interpolation Property**: Fully interpolating for both positions and specified derivative vectors.
```mermaid flowchart TD accTitle: Hermite and Derivative Spline Hierarchy accDescr: Diagram illustrating how boundary conditions flow into Hermite splines, Cardinal splines, and Catmull-Rom splines.
subgraph Constraints["Boundary Inputs"] P["Positions: P0, P1"] V["Velocities: v0, v1"] end
subgraph Hermite["Hermite Spline"] HS["Explicit Positions & Velocities\n(C1 Continuous, Discontinuous C2)"] end
subgraph Automatic["Neighbor-Derived Velocities"] CS["Cardinal Spline\nVelocity = scale * (P[i+1] - P[i-1])"] CR["Catmull-Rom Spline\nFixed scale = 0.5 ('Just works')"] end
P --> HS V --> HS HS -->|"Automate velocities via neighbors"| CS CS -->|"Fix scale to 0.5"| CR ```
---
[43:35](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2615s) Converting Between Hermite and Bézier
The Hermite spline shares an intimate geometric link with the cubic Bézier curve, and translating between the two representations requires minimal arithmetic. To convert a Hermite join into a cubic Bézier segment, one simply divides the velocity vector at the join by three and adds the result to the origin point. Flipping that same calculated vector across to the adjacent segment yields the corresponding Bézier tangent handle for the opposite curve.
Holmér explains: “If you divide each velocity by three, and add its origin, you get the Bézier tangent point.” Applying this operation reproduces the exact same trajectory as the Hermite spline, proving that cubic Bézier tangent handles represent precisely one-third of the instantaneous velocity vector at the knot.
- **Formula**: $\text{Bézier Handle} = P_0 + \frac{1}{3}v_0$. - **Mathematical Equivalence**: A cubic Hermite segment and a cubic Bézier curve with handles at one-third velocity produce identical geometric paths and velocity profiles.
---
[44:09](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2649s) The Linear Spline and Its Superpowers
Turning to the simplest and most widespread curve construct, Holmér highlights the linear spline—the practice of drawing straight line segments directly between control points. Despite its lack of mathematical sophistication, Holmér points out that it possesses distinct practical advantages: “And we might scoff at this shitty little basic spline but it actually has a few superpowers.”
First, the linear spline is strictly interpolating, passing through every provided point without extraneous oscillations. Second, it is trivially cheap to compute, evaluating via a standard linear interpolation (`lerp`). Third, it effortlessly supports arc-length parameterization, which allows an object to traverse a path at constant speed. As Holmér stresses: “Arc length parameterization is when you want to interpolate a curve with a constant speed, which is actually very complicated for almost all splines out there.” The major compromise is smoothness: a linear spline exhibits hard corners and is strictly limited to $C^0$ continuity.
- **Evaluation Formula**: Piecewise linear interpolation: $\text{lerp}(P_0, P_1, t) = (1 - t)P_0 + tP_1$. - **Continuity**: Strictly $C^0$ (breaks at first derivative). - **Primary Strength**: Trivial arc-length parameterization and negligible computational cost.
---
[45:17](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2717s) The Cardinal Spline: Automatic Tangents and Scale
To retain the interpolating behavior of linear splines while avoiding the need to manually supply derivative vectors like in Hermite splines, one can calculate velocities automatically from neighboring points. By subtracting the preceding control point from the succeeding one ($P_{i+1} - P_{i-1}$), a direction and magnitude vector is established for each knot. Because the first and last control points lack an outer neighbor, an artificial "ghost point" is created by mirroring the second adjacent point around the endpoint, allowing the curve to close cleanly across its full span.
Constructing tangents purely from raw neighbor differences, however, produces an unappealing, bulging trajectory. Analyzing this curve with a curvature comb demonstrates that sections with sharp directional shifts form noticeable bumps, while extended segments flatten out where curvature plummets to zero. To tame these harsh transitions, a uniform scale factor is applied to all generated velocity vectors. As the scale factor decreases toward zero, the spline contracts and approaches the shape of a linear spline; as the scale increases, the curve relaxes before bulging out again when the factor reaches one.
Holmér notes the confusing terminology in existing literature, where this scaling factor is frequently labeled tension: “I’ve found three different methods across the internet, so I’m just giving up, and calling it scale, because I think this is the most computationally efficient way to define it anyway.” A spline that interpolates all points using automatic neighbor-derived tangents modulated by an explicit scale parameter is termed a Cardinal spline.
- **Velocity Calculation**: $v_i = \text{scale} \cdot (P_{i+1} - P_{i-1})$. - **Ghost Points**: Endpoints are computed by reflecting interior adjacent points across boundary anchors ($P_{-1} = 2P_0 - P_1$). - **Curvature Control**: Lower scale values pull the spline closer to linear segments; higher values introduce pronounced curvature swells.
---
[48:20](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2900s) The Catmull-Rom Spline
When the Cardinal spline's scale parameter is dialed to exactly $\frac{1}{2}$, the curve assumes a uniquely balanced and natural trajectory. The flat regions and exaggerated sharp turns balance out into an evenly distributed sweep across the control points. Because of this balance, it has become a staple of interactive software. Holmér remarks: “It’s a very, comfortable spline, where you pass in some points, and it ‘just’ smoothly passes through without too much effort.”
This specific configuration is the Catmull-Rom spline, widely adopted in game development because designers can drop control points into a world and obtain an aesthetically pleasing, smoothly interpolated curve without manually tuning tangent handles. Assessing its continuity reveals that the curvature comb flows across joins without breaks, confirming geometric $G^1$ continuity. When checked parametrically, the first derivative connects seamlessly, while the second derivative graph contains visible gaps. Thus, the Catmull-Rom spline is parametrically $C^1$ continuous.
| Spline Type | Input Data Required | Tangent Generation | Continuity Rating | Primary Use Case | |:--- |:--- |:--- |:--- |:--- | | **Linear** | Points only | None (straight edges) | $C^0$ | Fast, constant-speed movement | | **Hermite** | Points and velocities | User-specified per point | $C^1$ | Physics simulation, networking | | **Cardinal** | Points and scale factor | Scaled neighbor vectors | $C^1$ / $G^1$ | Adjustable-tension curves | | **Catmull-Rom** | Points only | Fixed half-difference ($\text{scale} = 0.5$) | $C^1$ / $G^1$ | Game paths, general interpolation |
---
[49:33](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2973s) Investigating Catmull-Rom Basis Functions and Continuity
The mathematical structure of the Catmull-Rom spline becomes visible when looking at its characteristic matrix and basis functions. Basis functions dictate the exact weight that each control point exerts on the curve at any parameter value $t$. Holmér emphasizes this role: “Remember - the basis functions say how much every control point should influence a given point in the curve.” Rearranging these basis functions reveals how the influence of a single point propagates across four consecutive curve segments.
Plotting this influence reveals an undulating wave composed of distinct regions. Holmér illustrates the mechanical behavior of these regions: “The white section is where the point is pulling on the curve with a positive influence, while the red section is getting pushed away by the point, as it has a negative influence.” Every control point has a localized peak where its influence reaches exactly 100% (value 1.0) while all other points exert 0% influence, guaranteeing that the curve physically passes through that anchor. From that peak, its positive influence gradually drops off until it enters a negative valley—pushing the curve slightly outward—before returning to zero as adjacent points take over.
Because the behavior of a spline is tied to its underlying polynomials, the spline's continuity can be evaluated directly on the basis functions themselves: - **$C^0$ Evaluation**: The basis curves meet each other seamlessly and align with the zero axis at their boundaries, confirming $C^0$ positional continuity. - **$C^1$ Evaluation**: Taking the first derivative of the basis functions produces continuous curves without gaps, confirming that the spline is at least $C^1$ continuous. - **$C^2$ Evaluation**: Taking the second derivative reveals disjoint graphs with clear vertical breaks at the knot boundaries. This confirms that the Catmull-Rom spline fails $C^2$ continuity, retaining an acceleration mismatch across joins.
[51:31](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3091s) In Search of a $C^2$ Spline
After exploring multiple spline formulations, a clear frustration emerges: despite all the mathematical machinery developed so far, every construction remains trapped in the realm of $C^1$ continuity. Freya poses the central question: is there really no way to construct a cubic spline with $C^2$ continuity—guaranteeing continuous acceleration across joins—without running into the issues seen earlier? As she puts it:
> “Well, the best way to test this, is to try doing it yourself. In other words, you know, fuck around and find out.”
Because the characteristic matrix in the algebraic formulation serves as the mathematical fingerprint of any uniform cubic spline, the problem reduces to solving for its 16 unknown entries. Finding 16 independent equations requires systematically cataloging every boundary and continuity constraint across the basis functions:
```mermaid flowchart TD accTitle: System of 16 Equations for a C2 Spline accDescr: Diagram illustrating how 16 equations are gathered to determine the characteristic matrix of a C2 spline. subgraph Boundary["Boundary Conditions (6 eqs)"] B1["First basis function end joins x-axis with C² continuity (3 eqs)"] B2["Last basis function start joins x-axis with C² continuity (3 eqs)"] end subgraph Interior["Interior Segment Joins (9 eqs)"] J1["Join between functions 1 & 2 is C² (3 eqs)"] J2["Join between middle functions is C² (3 eqs)"] J3["Join between functions 3 & 4 is C² (3 eqs)"] end subgraph Partition["Convex Combination (1 eq)"] P1["Basis functions must sum to 1 across the domain (1 eq)"] end Boundary --> Total["16 Equations / 16 Unknowns Matrix System"] Interior --> Total Partition --> Total ```
Setting up $C^2$ continuity (matching position, first derivative, and second derivative) between adjacent pieces yields: - 3 equations requiring the tail end of the first basis function to meet the $x$-axis with $C^2$ continuity. - 3 equations requiring the join between the first and second basis functions to be $C^2$. - 3 equations requiring the join between the middle basis functions to be $C^2$. - 3 equations requiring the join between the third and fourth basis functions to be $C^2$. - 3 equations requiring the start of the final basis function to meet the $x$-axis with $C^2$ continuity.
This produces 15 equations, leaving exactly one degree of freedom unaccounted for. The final missing constraint comes from the requirement that the spline form a convex combination: all basis functions must sum identically to 1 across the domain. With 16 equations for 16 unknowns, the system is fully determined and solvable.
---
[53:15](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3195s) The B-Spline and Continuity Verification
Solving this system yields a set of basis functions that look extraordinarily smooth compared to Catmull-Rom or Bézier bases, alongside the corresponding coefficients of the characteristic matrix. However, plotting the resulting spline curve reveals a striking surprise: the generated curve does not pass through the control points at all. The entire curve and all of its interior joins sit completely detached from and inside the hull of the control polygon. As Freya observes:
> “This is the first time the curves don’t actually meet at control points.”
While losing interpolation might seem like a heavy price, inspecting the curve's continuity proves that the construction accomplished its primary mission:
- **Geometric Continuity ($G^2$):** Curvature combs placed across the joins remain fully connected and aligned regardless of how the control points are dragged. Because the comb itself exhibits kinked corners rather than smooth tangents at the boundaries, the curve is strictly $G^2$, not $G^3$. - **Local Control Preserved:** Crucially, unlike earlier attempts to force $C^2$ continuity onto Bézier splines—which triggered a cascading loss of local control where moving one point altered the entire spline—this construction maintains true local control. Moving a control point only influences its immediate neighborhood while preserving all continuity guarantees. - **Parametric Continuity ($C^2$ via Vector Animation):** Visualizing the parametric derivatives over time confirms the analytical results. First-derivative velocity vectors glide across the joins without instantaneous jumps, verifying $C^1$. Acceleration vectors (visualized attached to the tips of the velocity vectors, showing how acceleration constantly pulls on velocity) likewise deform and translate continuously without sudden hops, proving the curve is genuinely $C^2$. - **$C^3$ Discontinuity:** Plotting jolt vectors (third derivatives pulling on the acceleration vectors) reveals instantaneous snapping and jumping precisely as the parameter crosses segment joins, confirming the spline cannot be $C^3$.
This smooth, non-interpolating formulation is the classic uniform cubic **B-spline** (short for *Basis Spline*). Its existence hinges on a fundamental design trade-off: it sacrifices interpolation entirely in order to achieve effortless, local $C^2$ acceleration continuity.
---
[56:35](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3395s) Quiz Time: What Spline Is This?
Freya presents an isolated, smooth cubic curve segment on screen and challenges the viewer to identify which spline generated it. She jokes about how impossible the challenge is:
> “It requires an unreasonably, actually impossibly keen eye to determine.”
She cycles playfully through candidate explanations: - It looks like a Bézier curve because one can practically envision where the control handles ought to sit. - Perhaps it is a Hermite segment, defined by endpoints and explicit boundary velocity vectors. - It could easily be a Catmull-Rom segment passing neatly through its defining data points. - Or maybe it is obviously a B-spline given how gentle and smooth the curvature appears. - Alternatively, what if it represents physical motion: a projectile trajectory launched with an initial position and velocity, subject to a constant baseline gravity and a steady linear change in gravity over exactly one second? Trajectories can also be written in matrix form.
The punchline is that this is a trick question. Every single one of these formulations can produce the exact same spatial curve segment. Within an isolated segment, all of these splines are uniform (parameterized over the canonical range $t \in [0, 1]$) and all are cubic polynomials governed by identical algebraic polynomial degrees.
---
[57:37](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3457s) Curves vs. Splines and Use Cases
Because any uniform cubic segment can be reparameterized into another, a fundamental conceptual distinction must be drawn: an individual curve is not a spline. Rather, curves are generated by splines. As Freya puts it:
> “What splines really describe, is a transformation of control points.”
A spline acts as a curve generator governed by specific contracts regarding how it interprets input control points and how smoothly it stitches adjacent segments together across joins. Changing the spline type while keeping the control points fixed yields completely different paths:
```mermaid flowchart LR accTitle: Splines as Curve Generators accDescr: Flow diagram showing control points transformed by various spline types into distinct curves with specific continuity promises. CP["Control Points"]
subgraph Generators["Spline Generators (Continuity Promises)"] direction TB B["Bézier: C⁰ / G¹ control (corners)"] H["Hermite: Explicit velocity matching"] CR["Catmull-Rom: C¹ + Interpolation"] BS["B-Spline: C² + Local Control"] L["Linear: Dense sampling / polyline"] end
Curves["Resulting Continuous Paths"]
CP --> Generators Generators --> Curves ```
Each spline type occupies a distinct practical niche based on its unique promises:
| Spline Family | Continuity / Behavior | Primary Applications | |:--- |:--- |:--- | | **Bézier Spline** | Direct handle control; easy to break continuity for deliberate sharp corners ($C^0$) | Vector typography, fonts, 2D graphic design (e.g., drawing shapes like hearts). | | **Hermite Spline** | Explicit derivative specification; guaranteed boundary velocities | Keyframe animation editors (e.g., Unity's Animation Curve editor). | | **Catmull-Rom Spline** | Automatic velocity estimation; guaranteed interpolation through points ($C^1$) | Path smoothing in game cameras, navigation, and trajectory following through waypoint data. | | **B-Spline** | Non-interpolating; guaranteed local $C^2$ acceleration continuity | Industrial CAD/CAM, class-A reflective car surfaces, smooth camera tracks devoid of sudden acceleration jolts. | | **Linear Spline** | $C^0$ continuity (polylines); simple point-to-point connections | Densely sampled paths where raw segment density makes discretization imperceptible (e.g., rendering curve samples in video graphics). |
To illustrate Hermite splines in action, Freya walks through a stylized animation of a jumping square built inside Unity. The vertical bounce height is driven over time by a 1D non-uniform Hermite spline (allowing custom time intervals between keyframes). Layering additional splines allows independent control over rotation (flipping the box mid-air) and scale (giving the box a squishy, goopy squash-and-stretch bounce).
---
[01:01:35](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3695s) The Extended Spline Universe: Non-Uniformity, NURBS, and Color Space
Uniform cubic splines represent only a tiny corner of spline theory. Every spline type has higher-degree polynomial counterparts as well as non-uniform extensions: - **Non-Uniform Hermite Splines:** Allow arbitrary time stamps for keyframes, giving animators full control over both value, arrival velocity, and duration between knots. - **Non-Uniform Catmull-Rom Splines:** Adjust knot spacing based on geometric distances between points (such as centripetal parameterization), preventing loops, self-intersections, and overshoot cusps. - **Non-Uniform B-Splines:** Enable variable knot spacing while preserving all $C^2$ continuity guarantees, allowing custom basis functions per segment that alter how tightly the curve hugs the control polygon. - **NURBS (Non-Uniform Rational B-Splines):** Add an explicit scalar weight or priority to each control point, pulling the curve closer to or pushing it further from specific vertices. This rational formulation allows exact representations of conic sections (like true circles and ellipses) that standard polynomial splines can only approximate.
Finally, Freya circles back to an example shown at the very start of the video: color gradients. Colors exist within a three-dimensional RGB color cube whose axes represent red, green, and blue values. Every color stop in a gradient is literally a control point of a 3D linear spline situated inside color space. When applied as a gradient map to an image, the input parameter is not time, but rather the luminance (brightness) of each grayscale pixel. The spline evaluates that brightness value to output a full RGB color vector, demonstrating how splines silently underpin rendering, mathematics, and digital art far beyond simple geometric motion paths.
[01:03:58](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3838s) Feline Interruptions and Patreon Support
Freya opens the video's closing thoughts with personal acknowledgments, highlighting her cats—Thor, Salad, and Toast—who made frequent, disruptive appearances during the voiceover recording sessions. Salad is shown actively causing trouble by chasing Thor, an activity he is strictly forbidden from doing. Freya playfully scolds him as a "bad boy" while letting viewers see the behind-the-scenes domestic chaos that accompanied the production.
Following the feline shout-out, she expresses deep gratitude to her Patreon community, noting that member contributions made the immense project viable in the first place. She actively encourages viewers who appreciate her educational work to join her Patreon, making an explicit practical case for the platform. She points out that Patreon only takes a 5% cut of creator earnings, contrasting it directly against storefronts and platforms that routinely extract 30% to 50%. As Freya puts it: “Patreon is also the,, it's like the only platform, that only takes 5% of the cut most other platforms take like 30% or 50%, which is absolutely ridiculous, and so patreon is like a really really good place to support work in general, so I would really recommend that!”
- **Cat Cast:** Thor, Salad, and Toast (with Salad caught on camera actively chasing Thor). - **Platform Economics:** Freya emphasizes that Patreon's 5% creator fee is vastly fairer than the 30% to 50% cuts standard across other creator and distribution platforms.
---
[01:04:51](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3891s) Scope Creep, Burnout, and Recovery
Turning to the production history, Freya reflects on the grueling timeline of the project, which took a little over a year from the commencement of research to its final YouTube release. The core issue was an unmanageable scope: splines represent an enormous mathematical domain with countless avenues of exploration. Because Freya instinctively strives to explain every subtopic with exhaustive rigor and visual depth, the video risked ballooning into an unwatchable twelve-hour marathon. Looking ahead, she resolves that future projects must either target tightly bounded concepts or be architecturally planned from the outset as serialized chunks rather than monolithic releases. The original vision had been a comprehensive arc starting at linear interpolation (`lerp`) and culminating in Non-Uniform Rational B-Splines (NURBS); while she touched upon both ends, she was unable to cover the inner mathematical workings of NURBS or non-uniform splines.
The emotional and physical toll of this runaway scope resulted in severe burnout. After completing about three to four months of continuous work, she hit an absolute wall where progress stopped entirely for several months. For someone whose personal identity and self-worth are deeply tied to high productivity, this shutdown was profoundly distressing. As Freya reveals: “I think I got like 3-4 months of work done, and then I burnt out completely, and, I couldn't work on it.” Even while remaining proud of the density and visual polish of the finished one-hour runtime, she expresses lingering regret over the topics she had to cut. However, because the extensive research and code implementations are already complete, she holds open the door to explore non-uniform splines and NURBS in dedicated future videos without having to start from scratch.
---
[01:07:18](https://www.youtube.com/watch?v=jvPPXbo87ds&t=4038s) The YouTube Comment Prediction Game
Acknowledging that only a tiny fraction—perhaps 1%—of viewers ever reach the extreme tail end of a long-form essay, Freya initiates a playful prediction game anticipating the exact debates and criticisms bound to populate the YouTube comment section. Her first prediction revolves around the word "osculating." In her previous Bézier curve video, she had mispronounced the term as "ossu-layding," prompting a torrent of confused viewers to correct her under the mistaken impression she had meant "oscillating." Anticipating the internet's reflexive nature, she predicts the pendulum will swing the other way: “I predict that, someone is gonna correct me, or, incorrectly correct me, about how I pronounced 'osculating'.”
She also expects commenters to argue that the matrix form of the cubic trajectory could be further simplified by reducing its diagonal matrix, as well as semantic debates claiming her definition of a spline is either wrong or insufficiently formal. Another predictable critique is that she "forgot" to show how NURBS can represent exact circular arcs; she clarifies that this was an intentional omission reserved for an upcoming standalone video on circles and splines. Finally, she humorously lists advanced concepts viewers might drop in the comments to flaunt their domain knowledge, emphasizing that these were deliberately set aside to protect her health and prevent further burnout:
- **Anticipated Commenter "Omissions":** - Natural splines - Polar blossoming - De Boor's algorithm / construction of B-splines - The A-frame construction - Knot insertion, knot multiplicity, and degree elevation - $\beta$-splines (Beta-splines) - Kochanek–Bartels splines - Spiro splines - Biarcs - Lagrange interpolation (which, she dryly notes, is not even a spline)
---
[01:10:05](https://www.youtube.com/watch?v=jvPPXbo87ds&t=4205s) Attempting to Invent a Quartic $C^2$ Spline
Freya reveals a secret objective she harbored during production: she wanted to conclude the video by inventing an original spline formulation and contributing something novel to mathematical curve design. Specifically, she sought to combine the most desirable traits of existing popular splines: an interpolating curve that passes directly through every single control point (like a Catmull-Rom spline), but possesses acceleration continuity ($C^2$) at every seam.
```mermaid flowchart TD accTitle: Quartic C2 Spline Design Trade-offs accDescr: Flowchart illustrating Freya Holmer's attempt to design a novel interpolating C2 continuous spline using a quartic degree formulation.
subgraph Goal ["Design Objective"] G1["Interpolation: Passes through all points (like Catmull-Rom)"] G2["Continuity: C² Acceleration Continuity across seams"] end
subgraph Execution ["Implementation Strategy"] E1["Raise polynomial degree from Cubic (degree 3) to Quartic (degree 4)"] end
subgraph Outcome ["Result & Visual Failure"] R1["Mathematically Solved for Uniform Case"] R2["Undesirable Curve Geometry: Nearly linear between points with abrupt corner bends"] end
Goal --> Execution Execution --> Outcome ```
To grant the curve enough degrees of freedom to satisfy both constraints simultaneously, she increased the polynomial degree from cubic (degree 3) to quartic (degree 4). While she successfully solved the linear algebra for the uniform case, the visual result was an aesthetic failure. As Freya bluntly admits: “I did make a spline, but, it had a bad shape.” The curve produced an awkward, unappealing trajectory that ran almost completely flat and linear between control points before making sudden, tight turns at the nodes. Disappointed by its geometric behavior, and unable to generalize it cleanly to non-uniform knot spacing, she ultimately scrapped the discovery from the main presentation.
---
[01:11:12](https://www.youtube.com/watch?v=jvPPXbo87ds&t=4272s) Finding a Voice and Looking Ahead
In an introspective tangent, Freya discusses her continuing struggle to settle on an authentic presentation style for scripted video essays. Having honed her voice primarily through unscripted livestreaming on Twitch, she finds that reading from a strict script often strips out her natural humor, spontaneity, and cadence. As Freya observes about the medium's stiffness: “I always feel like my personality is not shining through, when I make this type of video.” She plans to experiment with presentation formats in future videos so her delivery feels less flat and detached.
She reminds viewers that much of the development, mathematical prototyping, and tool programming for her videos happens live on Twitch, and notes that she also streams live educational lectures on YouTube—including an upcoming week-long masterclass on shader programming. Wrapping up, she reaffirms her commitment to tackling bite-sized math questions rather than massive omnibus projects. Her intended next subject is a focused breakdown of "What are radians?", joking: “That seems like a very bitesize topic that I can then accidentally blow up to 30 minutes, but 30 minutes is a lot more manageable than 1 hour, so, hopefully that's what's gonna happen.” With a final expression of gratitude to the audience for joining her on such an exhausting creative journey, she signs off until the next video.
## Notable quotes > [20:25](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1225s) You can’t make a cubic Bézier C2 continuous, it is, literally impossible, without losing local control. And, having that control is the whole point of using splines in the first place! — Freya Holmér
> [25:52](https://www.youtube.com/watch?v=jvPPXbo87ds&t=1552s) Continuity is absolutely central to the discussion of splines, and it’s actually the primary motivator for investigating multiple different types of splines. — Freya Holmér
> [57:37](https://www.youtube.com/watch?v=jvPPXbo87ds&t=3457s) What splines really describe, is a transformation of control points. — Freya Holmér
> [44:09](https://www.youtube.com/watch?v=jvPPXbo87ds&t=2649s) Arc length parameterization is when you want to interpolate a curve with a constant speed, which is actually very complicated for almost all splines out there. — Freya Holmér
## Mentioned Freya Holmér, Satisfactory, Apple, Adobe Photoshop, De Casteljau's algorithm, Bernstein basis polynomials, Unity, Patreon, YouTube, Twitch, NURBS, De Boor's algorithm, Catmull-Rom spline
## Video description why are splines? well my god I have good news for you, here's why splines!
if you like my work, please consider supporting me 💖 https://www.patreon.com/acegikmo
This project grew much larger in scope than I had originally intended, and burnout made it impossible for me to do more with it. It was already getting incredibly unwieldy, so I apologize in advance for not covering non-uniform splines, and the general jankiness of some parts. There are also quite a lot of places where I just talk about something without *showing* it, but since I couldn't animate it all, I opted to keep that information in rather than remove it altogether
• Lots of love to 💛 Jazz "queenjazz" Mickle for music & sounds ❱ https://queenjazz.bandcamp.com/ 🐈 our children, Thor, Salad & Toast, for helping me out during recording
• How was this video made? 🔨 I made it in Unity, the game engine ⭕ Using Shapes, my vector graphics plugin ❱ https://u3d.as/1W37 📈 Using Mathfs, my math library ❱ https://github.com/FreyaHolmer/Mathfs ...along with a bunch of hacky, partially broken, procedural animation tools I made specifically for this video 💡 Striped studio skybox by ProAssets: https://assetstore.unity.com/packages/2d/textures-materials/sky/studio-lighting-hdri-pack-55154 🎥 Final editing in DaVinci Resolve
• Links 🐦 Twitter ❱ https://twitter.com/FreyaHolmer 📺 Twitch ❱ https://www.twitch.tv/acegikmo 💬 Discord ❱ https://discord.gg/v5VWuga 🌸 Instagram ❱ https://instagram.com/freya_holmer
Timestamps:
00:00:00 Intro 00:01:17 Examples of Paths
00:02:16 CHAPTER 1 - Bézier Curves 00:02:20 Lerp 00:03:16 Quadratic Bézier 00:03:54 Cubic Bézier 00:07:41 n-Degree Bézier
00:09:37 CHAPTER 2 - Bézier Splines 00:10:00 Cubic Bézier Spline 00:10:21 Spline Parameterization 00:11:01 The Anatomy of a Spline 00:11:32 Knot Values & Knot Intervals 00:12:21 Local Control 00:14:03 The flexibility of the Cubic Bézier 00:14:28 Tangent Points
00:15:07 CHAPTER 3 - Continuity 00:15:28 C⁰ (Positional Continuity) 00:16:12 Spline Derivatives 00:17:32 C¹ (Velocity Continuity) 00:20:25 C² (Acceleration Continuity) 00:21:48 Cascading Loss of Local Control 00:23:46 C³ (Jolt Continuity) 00:24:49 C∞ Continuity 00:25:19 Parametric Continuity Summary
00:26:20 CHAPTER 4 - Geometric Continuity 00:26:50 G¹ (Tangent Continuity) 00:27:46 G² (Curvature Continuity) 00:28:05 The Reflection Test 00:28:56 Seams in Circular Arcs 00:29:43 Angle Analysis 00:30:47 Curvature & The Osculating Circle 00:32:26 Curvature Combs 00:32:48 G¹ (Algebraically) 00:33:27 G² (Algebraically) 00:34:52 Geometric Continuity Summary 00:36:30 Continuity Summarized 00:38:06 Cusps
00:39:25 CHAPTER 5: The Extended Universe 00:39:40 Hermite Spline 00:43:35 Hermite ⇔ Bézier Conversion 00:44:09 Linear Spline 00:45:17 Cardinal Spline 00:48:20 Catmull-Rom Spline 00:49:33 Investigating Basis Functions 00:51:02 Basis Function Continuity Analysis 00:51:31 In Search of a C² Spline 00:53:15 B-Spline 00:56:35 Quiz Time! 00:57:12 Cubic Trajectory 00:57:37 Uniform Cubic Splines 00:59:09 Splines & Their Use Cases 01:01:37 Outro 01:02:16 NURBS 01:02:56 Color Spline 01:03:52 Credits & Freya Rambles 01:13:26 Cats helping me w. recording
[Source](https://www.youtube.com/watch?v=jvPPXbo87ds)