Assuming the OP means how the wall should be straight in relation to the other walls, i.e., 90 degrees.
If it's not too far to another parallel wall, you can measure the same distance on both sides.
Otherwise, it's common to use Pythagoras' theorem and measure a triangle with the ratios 3:4:5 where 5 is the diagonal.