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

✖️ 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