A goniometer typically consists of a sample holder that can be rotated around multiple axes. When used in XRD, for example, the goniometer rotates the crystal sample while it is being bombarded with X-rays. The diffracted rays are then measured to determine the crystal's structure. The goniometer's precision in positioning the sample is key to obtaining accurate diffraction data.