Skip to content

🎯 Rays and Intersections: Does This Line Hit That Shape?

A ray is a starting point and a direction. Asking where it hits something powers mouse picking, bullets, shadows and ray tracing. Build a ray-circle test from what you already know, then trace a tiny picture.

22 November 2026 · ~9 min read · 2 interactive demos

🎚️ Interpolation: Lerp, Smoothstep and Easing

Blending smoothly from one value to another is everywhere in graphics: colours, positions, textures, animation. Meet lerp, its reverse, remapping, smoothstep and easing curves.

22 November 2026 · ~10 min read · 2 interactive demos

〰️ Angles, Sine and Cosine: Going Round in Circles

Sine and cosine are just the x and y of a point going round a circle. That simple idea gives you rotation, smooth waves, orbits and animation. Spin the point and shape a wave.

22 November 2026 · ~9 min read · 2 interactive demos

✖️ The Cross Product: Finding the Direction at Right Angles

Give the cross product two directions and it hands back a third, at right angles to both. It’s how graphics finds which way a triangle faces, which side of a line a point is on, and how cameras get their axes.

22 November 2026 · ~9 min read · 2 interactive demos

⚫ The Dot Product: How Much Do Two Directions Agree?

One tiny calculation, three multiplications and two additions, answers ‘do these point the same way?’. It’s behind lighting, field-of-view checks and much more. Drag two arrows and see.

22 November 2026 · ~8 min read · 2 interactive demos

🧭 Coordinates and Vectors: Arrows That Describe Space

Nearly every number in graphics is a position or a direction. Learn what coordinates and vectors are, and how to add, subtract, scale and measure them, by dragging arrows around.

22 November 2026 · ~9 min read · 2 interactive demos

🫠 Combining SDFs: Unions, Smooth Blends and Bending Space

Two lines of maths join, cut and melt shapes together, and a few more repeat, mirror and twist them, endlessly, for free. Part 2 of the signed distance fields series.

21 November 2026 · ~9 min read · 2 interactive demos

🔵 Signed Distance Fields: Shapes Made of Distances

Describe a shape by how far every point is from its edge, and you get crisp edges at any size, easy outlines and much more. See how circles, boxes, lines and polygons are written as distance functions.

21 November 2026 · ~9 min read · 1 interactive demo

🔄 Transformation Matrices: Moving, Rotating and Scaling with Grids of Numbers

How a small grid of numbers can move, turn, stretch and mirror a whole mesh at once, why its columns tell you where the axes go, and why the order you combine them in matters.

11 November 2026 · ~10 min read · 2 interactive demos