In a right triangle, cotangent is the ratio of the ADJACENT leg to the OPPOSITE leg. In your case cot(theta) = .