Length axis

Rotate the rectangle until it follows the slab length. The rectangle sets direction only; you enter length L on the next step.

setAxisAngle(Number(e.currentTarget.value))} /> {angleDeg}°