Skip to content

Spherical Linear Interpolation

Interpolation along a selected great-circle arc whose angular distance from the starting point varies linearly with the interpolation parameter.

Version
v2 · 2026-11-14 · History
Domain-specific #
12210
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomains
Computer Graphics, Computer Animation → Computer Science & Software Engineering
Aliases
Slerp, Circular interpolation, Quaternion slerp

Core Idea

Spherical linear interpolation, or slerp, is the geodesic analogue of linear interpolation on a unit sphere. Given two non-antipodal endpoints and an arc choice, it uses sine-weighted endpoint vectors so parameter t advances a fraction t of the total spherical angle.

Applied to unit quaternions, the path represents constant-angular-velocity change between 3D orientations. Because q and −q denote the same rotation, sign and branch choices decide whether interpolation takes a short or long path; degenerate endpoints require explicit handling.

How would you explain it like I'm…

Ant Walk on a Ball

Picture a bug walking on a ball from one spot to another along the shortest curved path, at a steady speed. If it's halfway through its time, it's halfway along the curve. That smooth curved trip is spherical linear interpolation.

Smooth Steady Turning

Normally, to go partway between two points, you go along a straight line. But on the surface of a ball, the straight line would cut through the inside. Spherical linear interpolation, or slerp, goes along the curved surface instead, by the shortest arc, at an even pace: halfway in time means halfway along the arc. Video games and animations use it to smoothly turn an object from one direction to another at a steady speed.

Great-Circle Interpolation

Spherical linear interpolation, called slerp, is like ordinary linear interpolation but for points on a sphere. Given two endpoints that are not exactly opposite, and a choice of which arc to follow, slerp moves along the great-circle arc so that a parameter t from 0 to 1 covers exactly fraction t of the total angle. It does this by blending the two endpoint vectors with weights based on sines of angles. In computer graphics it is applied to unit quaternions, which represent 3D rotations, to turn objects at a constant rate. Because a quaternion and its negative mean the same rotation, programs must choose signs carefully to take the short way around.

 

Slerp is the geodesic analogue of linear interpolation on the unit sphere: given two non-antipodal unit vectors p and q separated by angle θ and a chosen arc, slerp(p,q;t) = [sin((1−t)θ)/sin θ] p + [sin(tθ)/sin θ] q. This keeps the result on the sphere and advances it through a fraction t of the total angle, so motion is uniform in arc length. Applied to unit quaternions, slerp yields constant-angular-velocity interpolation between 3D orientations. Because q and −q represent the same rotation, the sign of one endpoint (usually chosen to make the dot product nonnegative) determines whether the short or long arc is taken. Degenerate cases need explicit handling: antipodal endpoints have no unique geodesic, and nearly identical endpoints make sin θ vanishingly small in the denominators.

Structural Signature

Sig role-phrases:

  • Unit-sphere endpoints — Supply normalized start and end points. It is required input. Counterfactual: Non-normalized endpoints do not define the intended spherical geodesic without preprocessing.
  • Endpoint angle — Measures geodesic separation and parameterizes weights. It is geometric parameter. Counterfactual: At zero or pi, the usual formula is singular or nonunique.
  • Arc choice — Selects short, long, or otherwise oriented great-circle segment. It is branch condition. Counterfactual: Antipodal endpoints admit infinitely many great circles.
  • Linear parameter — Maps t to a proportional fraction of angular distance. It is interpolation rule. Counterfactual: Nonlinear timing changes speed even on the same arc.
  • Sine-weighted combination — Produces points on the chosen great-circle arc. It is defining operation. Counterfactual: Ordinary linear interpolation cuts through the sphere and needs renormalization.
  • Quaternion rotation interpretation — Maps unit-quaternion points to orientations under a double cover. It is application semantics. Counterfactual: Failing to handle q and minus q may choose an unintended long rotation.

What It Is Not

  • It is not ordinary linear interpolation in the ambient vector space.
  • It is not normalized lerp, which generally has nonuniform angular speed.
  • It is not unique for antipodal endpoints without an additional arc choice.
  • Quaternion slerp does not identify q and minus q automatically unless the implementation handles the double cover.
  • Closest near-miss. Normalized linear interpolation stays on the sphere after renormalization but generally does not move at constant angular speed.

Scope of Application

  • Computer animation. Interpolates orientation keyframes smoothly.
  • Robotics and navigation. Produces geodesic attitude transitions.
  • Geometry. Interpolates unit vectors on spheres of any dimension.
  • Signal and shape processing. Blends normalized directional or rotational states when branch conditions are controlled.

Clarity

State endpoint normalization, dot product and angle, arc branch, quaternion sign convention if used, parameter range, and treatment of coincident and antipodal cases. Distinguish uniform parameter speed from uniform angular speed.

Manages Complexity

Slerp converts curved-state interpolation into endpoint, angle, branch, and one parameter. It preserves spherical norm and constant angular progress while making explicit the degeneracies that Euclidean interpolation hides.

Abstract Reasoning

  1. Normalize and type the endpoints.
  2. Compute their dot product and angular separation.
  3. Choose the intended great-circle branch and quaternion lift.
  4. Apply sine-weighted interpolation or a stable limiting formula.
  5. Verify unit norm and endpoint recovery.
  6. Check angular distance versus t and handle zero or antipodal limits.

Knowledge Transfer

Slerp transfers literally to any unit-sphere state where geodesic distance and branch are defined. Interpolation on a general manifold requires its own geodesics and exponential map; visual smoothness alone does not make a curve slerp.

Examples

Canonical

Two non-antipodal unit vectors with angle Omega are combined using sin((1-t)Omega)/sin(Omega) and sin(tOmega)/sin(Omega); at t=½ the result lies halfway along the chosen great-circle arc.

Mapped back: endpoints → unit vectors; angle → Omega; operation → sine weights; parameter → half angular distance.

Applied / In Practice

Animation negates the destination unit quaternion when the dot product is negative, then applies slerp so the represented orientation follows the shorter constant-angular-velocity rotation.

Mapped back: endpoints → unit quaternions; branch → sign-corrected short path; semantics → 3D rotation; output → uniform angular motion.

Structural Tensions

T1 — Shortest Arc versus Chosen Orientation Path. The short path is usually desired, but an application may intentionally require the long rotation.

Diagnostic: Which lift and arc are part of the intended motion?

T2 — Geometric Fidelity versus Numerical Conditioning. Exact sine weights preserve uniform angle but become ill-conditioned near coincident or antipodal endpoints.

Diagnostic: Which limiting or fallback method preserves the intended branch?

Structural–Framed Character

Slerp is strongly structural as a metric-geometric construction; implementation conventions enter through branch, quaternion cover, and numerical limiting cases.

Structural Core vs. Domain Accent

The skeleton is constant-speed geodesic interpolation. Sphere geometry supplies great circles, sine weights, angular distance, and quaternion rotation semantics, keeping the named method mathematical and computational.

This entry presupposes Continuity.

  • Approved root. This exact constant-speed spherical rule has no frozen parent edge.

  • Related — interpolation, geodesic, quaternion rotation, and trilinear interpolation. They supply the broader task, geometry, application, or a different coordinatewise method.

Relationships to Other Abstractions

Local relationship map for Spherical Linear InterpolationParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Spherical LinearInterpolationDOMAINPrime abstraction: Continuity — presupposesContinuityPRIME

Current abstraction Spherical Linear Interpolation Domain-specific

Parents (1) — outgoing typed relations

  • Spherical Linear Interpolation presupposes Continuity Prime

    Spherical Linear Interpolation presupposes Continuity because the interpolation traverses a selected great-circle arc continuously with linearly varying angle.

Hierarchy paths (2) — routes to 2 parentless roots

Neighborhood in Abstraction Space

Spherical Linear Interpolation sits in a crowded region of the domain-specific corpus (33rd percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Coordinate Systems & Spatial Measures (30 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

  • Linear interpolation. Tell: Traverses the chord rather than the spherical arc.
  • Normalized lerp. Tell: Renormalizes chord interpolation but usually varies angular speed.
  • Quaternion lerp. Tell: Does not intrinsically preserve constant angular velocity.
  • Geodesic interpolation on a general manifold. Tell: Requires a different metric and construction.

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Spherical_linear_interpolation (revision 1340311860).