Geodesics & Hyperbolic Distances

Shortest paths, distance formulas, and the exponential growth of circles

Shortest Paths in Curved Space

In Euclidean geometry, the shortest path between two points is always a straight line. In hyperbolic space, “straight” takes on a richer meaning: geodesics curve through space following the intrinsic metric, appearing as circular arcs in the Poincare disk, semicircles in the upper half-plane, chords in the Klein model, and great hyperbolas on the hyperboloid. Distances grow exponentially near the boundary, causing circles, triangles, and Voronoi cells to behave in ways that defy Euclidean intuition.

Geodesic Tracer: Four Models at Once

Click two points in the Poincare disk (top-left) to draw a geodesic. The same path is simultaneously displayed in the upper half-plane, Klein disk, and hyperboloid models. Color-coded segments mark equal hyperbolic-length intervals, revealing how the metric stretches differently in each representation.

0 geodesics drawn
equal hyperbolic intervals

Try it: Draw a geodesic close to the boundary of the Poincare disk. Watch how the segments bunch up at the edge of the Poincare and Klein disks but remain evenly spaced on the hyperboloid projection.

Hyperbolic Circle Growth

A circle of hyperbolic radius r centered at the origin fits inside the Poincare disk with Euclidean radius tanh(r/2). Its circumference C = 2π sinh(r) and area A = 2π(cosh(r)−1) both grow exponentially, dwarfing the Euclidean formulas at large radii. Use the slider to watch circles swell and compare the growth curves side by side.

1.00
Hyp. circumference
7.384
Hyp. area
3.412
Eucl. circumference
6.283
Eucl. area
3.142

Hyperbolic Law of Cosines

Drag the three vertices of a hyperbolic triangle to explore side lengths, angles, and the angular deficit. The hyperbolic law of cosines cosh(c) = cosh(a) cosh(b) − sinh(a) sinh(b) cos(C) is verified numerically in real time. The area of any hyperbolic triangle equals π − (A+B+C), which is always positive and bounded by π.

Side Lengths

a (B→C)1.6778
b (A→C)1.7567
c (A→B)1.6807

Angles (radians)

A0.7116(40.8°)
B0.7900(45.3°)
C0.7143(40.9°)
A + B + C2.2159
(127.0° < 180°)

Area (angular deficit)

π − (A+B+C) = 0.9257

Law of Cosines Check

cosh(c) = cosh(a)cosh(b) − sinh(a)sinh(b)cos(C)
LHS cosh(c)2.777778
RHS2.777778
Error0.00e+0

Key insight: In hyperbolic geometry, the angle sum of every triangle is strictly less than π. The “missing” angle is exactly the triangle's area, a fact with no Euclidean analogue.

Voronoi Diagram in Hyperbolic Space

Click inside the disk to place seed points. Each pixel is colored by whichever seed is closest in the hyperbolic metric. Because the metric inflates near the boundary, cells near the edge look much larger in the Euclidean picture even though they span similar hyperbolic areas. Drag seeds to reshape cells in real time.

0 seeds placed

Key Takeaways

  • Geodesics across models — The same shortest path appears as a circular arc (Poincare), semicircle (half-plane), chord (Klein), or intersection curve (hyperboloid), but the hyperbolic length is identical in every model
  • Exponential growth — Circumference and area of hyperbolic circles grow as sinh(r) and cosh(r)−1, overwhelming Euclidean r and r² at large radii
  • Angular deficit — Every hyperbolic triangle has angle sum less than π; the deficit equals the area, linking geometry and topology
  • Hyperbolic Voronoi — Nearest-neighbor regions in hyperbolic space look warped in the Euclidean picture because the metric stretches exponentially toward the boundary