How do you set a Beam's length?

I used this method too to make a pointer for a VR Controller - worked spot on.