Your question is very general, calculation of the rotation depends on the type of the problem you are analyzing. Usually, rotation is measured in plates and beams problems, and in both cases you have to choose the axis around which you are calculating the rotation. In any case, it equals to the difference of the out of plane displacements divided by the distance coinciding with the rotation axis.