How to make sure crank arm is perfectly 180 degree aligned?

Like many, my left crank arm got loose, and I stupidly took off the left crank arm to fully investigate and fully install back in. After I took off the left crank arm, I realized that it's not set up like a typical bike where it's impossible to misalign the crank arms by a few degrees. I eyeballed it and installed it back. Visually it looks fine, but how do I know that the crank arms are 180 degrees apart, and not misaligned by a few inches?