Back to Browse

Implementing Quaternions: The Math Behind 3D Rotations

8.5K views
Aug 28, 2025
41:59

This video covers the fundamentals of quaternions and shows how to implement a quaternion class in Python to animate and rotate a 3D model like Earth. The Quaternion class implemented and example code for the features: https://github.com/kurtbruns/quaternion Support future videos here: https://www.patreon.com/wumbo_dot_net Timestamps: 0:00 - Introduction 2:28 - Design choices 8:24 - What are quaternions 11:33 - Code demo 15:18 - Implementation 30:31 - Rotating Earth 35:19 - Animating Earth 41:29 - Outro Resources: https://splines.readthedocs.io/en/latest/rotation/slerp.html https://dev.bostondynamics.com/docs/concepts/geometry_and_frames.html https://youtu.be/d4EgbgTm0Bg

Download

1 formats

Video Formats

360pmp454.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Implementing Quaternions: The Math Behind 3D Rotations | NatokHD