calculate the horizontal and vertical deflection of point D using the moment area method