Skip to content

Conversation

@switzel
Copy link

@switzel switzel commented Aug 10, 2023

The current implementation of Transform.apply_to_list assumes its argument to consist entirely of ideal or non-ideal points. Therefore it cannot be applied to the fundamental domain of SL_2(Z), for instance. This change checks the type of each point in the argument individually.

@cduck
Copy link
Owner

cduck commented Aug 19, 2023

Good catch. I will review and merge as soon as I have some free time.

On a quick glance it looks like you might have mixed some code from the other PR.

rpt = rot.apply_to_point(pt)
d = (rpt.x**2 + rpt.y**2 - rpt.x)/(rpt.x - 1)
return cls.from_closest_point_e_polar(d,theta,cw = cw)
@classmethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a space between two methods

shape = ECircle(x, y, er, cw=cw)
return Horocycle(
shape, closest_point=pt, surround_origin=surround_origin)
@classmethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a space between two methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants