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

Method equal

numericals.py:199–203  ·  view source on GitHub ↗
(self, other: Line)

Source from the content-addressed store, hash-verified

197 return close_enough(a * y, b * x) and close_enough(b * z, c * y)
198
199 def equal(self, other: Line) -> bool:
200 a, b, _ = self.coefficients
201 x, y, _ = other.coefficients
202 # b/a == y/x
203 return b * x == a * y
204
205 def less_than(self, other: Line) -> bool:
206 a, b, _ = self.coefficients

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected