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

Method intersect

numericals.py:422–426  ·  view source on GitHub ↗
(self, obj: Union[Line, Circle])

Source from the content-addressed store, hash-verified

420 self.r2 = radius * radius
421
422 def intersect(self, obj: Union[Line, Circle]) -> tuple[Point, ...]:
423 if isinstance(obj, Line):
424 return obj.intersect(self)
425 if isinstance(obj, Circle):
426 return circle_circle_intersection(self, obj)
427
428 def sample_within(self, points: list[Point], n: int = 5) -> list[Point]:
429 """Sample a point within the boundary of points."""

Callers

nothing calls this directly

Calls 2

intersectMethod · 0.45

Tested by

no test coverage detected