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

Method sign

numericals.py:280–286  ·  view source on GitHub ↗
(self, point: Point)

Source from the content-addressed store, hash-verified

278 return d1 * d2 > 0
279
280 def sign(self, point: Point) -> int:
281 s = self(point.x, point.y)
282 if s > 0:
283 return 1
284 elif s < 0:
285 return -1
286 return 0
287
288 def is_same(self, other: Line) -> bool:
289 a, b, c = self.coefficients

Callers 1

signMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected