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

Method is_same

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

Source from the content-addressed store, hash-verified

286 return 0
287
288 def is_same(self, other: Line) -> bool:
289 a, b, c = self.coefficients
290 x, y, z = other.coefficients
291 return abs(a * y - b * x) <= ATOM and abs(b * z - c * y) <= ATOM
292
293 def sample_within(self, points: list[Point], n: int = 5) -> list[Point]:
294 """Sample a point within the boundary of points."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected