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

Method rotatea

numericals.py:103–105  ·  view source on GitHub ↗
(self, ang: float)

Source from the content-addressed store, hash-verified

101 return dx * dx + dy * dy
102
103 def rotatea(self, ang: float) -> Point:
104 sinb, cosb = np.sin(ang), np.cos(ang)
105 return self.rotate(sinb, cosb)
106
107 def rotate(self, sinb: float, cosb: float) -> Point:
108 x, y = self.x, self.y

Callers 2

sketch_s_angleFunction · 0.80
sketch_squareFunction · 0.80

Calls 2

rotateMethod · 0.95
cosMethod · 0.80

Tested by

no test coverage detected