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

Method less_than

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

Source from the content-addressed store, hash-verified

203 return b * x == a * y
204
205 def less_than(self, other: Line) -> bool:
206 a, b, _ = self.coefficients
207 x, y, _ = other.coefficients
208 # b/a > y/x
209 return b * x < a * y
210
211 def intersect(self, obj: Union[Line, Circle]) -> tuple[Point, ...]:
212 if isinstance(obj, Line):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected