%%%%%%%%%%%%%%%%%%%%% Endpoints of Hyperbolic Lines %%%%%%%%%%%%%%%%%%%%% % % ENDPOINTS % Usage: ENDPOINTS(z) % Inputs: z is the euclidean centers of a line L % % Output: the end points of the two lines function E = endpoints(z) I = sqrt(-1); w=z/abs(z); th = acos(1/abs(z)); E=[w*exp(-I*th),w*exp(I*th)];