The primary function of a shaft cross is to transmit torque from one shaft to another while accommodating angular misalignment, axial movement, and slight variations in speed between the shafts. This flexibility is essential in applications where the connected shafts may not be perfectly aligned or need to move independently.