If you are in a modern facility most likely you can measure from either. If you are in an old or modified facility you may not have a floor or a ceiling that is level. This is why it is then recommended to measure from the straightest edge or just simply using a level.