How can I code an X-drive

Kinda an early tutorial but a good one nonetheless (his team pioneered holonomic drivetrains in VRC)