MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / rotate

Method rotate

numericals.py:107–109  ·  view source on GitHub ↗
(self, sinb: float, cosb: float)

Source from the content-addressed store, hash-verified

105 return self.rotate(sinb, cosb)
106
107 def rotate(self, sinb: float, cosb: float) -> Point:
108 x, y = self.x, self.y
109 return Point(x * cosb - y * sinb, x * sinb + y * cosb)
110
111 def flip(self) -> Point:
112 return Point(-self.x, self.y)

Callers 6

rotateaMethod · 0.95
sketch_eqdia_quadrangleFunction · 0.95
sketch_quadrangleFunction · 0.95
random_rfssFunction · 0.80
sketch_rotaten90Function · 0.80
sketch_rotatep90Function · 0.80

Calls 1

PointClass · 0.70

Tested by

no test coverage detected