def _get_coordonnees(self): a = self.__angle.radian zA = self.__sommet_principal.z zB = self.__point2.z if contexte['exact'] and issympy(a, zA, zB): zC = (zB - zA)*sexp(1j*a) + zA return zC.expand(complex=True).as_real_imag() else: zC = (zB - zA)*cexp(1j*a) + zA return zC.real, zC.imag
def _get_coordonnees(self): a = self.__angle.radian zA = self.__sommet_principal.z zB = self.__point2.z if contexte['exact'] and issympy(a, zA, zB): zC = (zB - zA) * sexp(1j * a) + zA return zC.expand(complex=True).as_real_imag() else: zC = (zB - zA) * cexp(1j * a) + zA return zC.real, zC.imag
def _get_coordonnees(self): a = self.__angle.radian zA = self.__point1.z zB = self.__point2.z zI = (zA + zB)/2 if contexte['exact'] and issympy(a, zI): zC = (zB - zI)*sexp(I*2*a) + zI return zC.expand(complex=True).as_real_imag() else: zC = (zB - zI)*cexp(1j*2*a) + zI return zC.real, zC.imag
def _get_coordonnees(self): a = self.__angle.radian zA = self.__point1.z zB = self.__point2.z zI = (zA + zB) / 2 if contexte['exact'] and issympy(a, zI): zC = (zB - zI) * sexp(I * 2 * a) + zI return zC.expand(complex=True).as_real_imag() else: zC = (zB - zI) * cexp(1j * 2 * a) + zI return zC.real, zC.imag