Line detector with laser beam, adjustable optical axis