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

Method same_side

numericals.py:273–278  ·  view source on GitHub ↗
(self, p1: Point, p2: Point)

Source from the content-addressed store, hash-verified

271 return d1 * d2 < 0
272
273 def same_side(self, p1: Point, p2: Point) -> Optional[bool]:
274 d1 = self(p1.x, p1.y)
275 d2 = self(p2.x, p2.y)
276 if d1 == 0 or d2 == 0:
277 return None
278 return d1 * d2 > 0
279
280 def sign(self, point: Point) -> int:
281 s = self(point.x, point.y)

Callers 1

sketch_2l1cFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected