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

Method intersect

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

Source from the content-addressed store, hash-verified

209 return b * x < a * y
210
211 def intersect(self, obj: Union[Line, Circle]) -> tuple[Point, ...]:
212 if isinstance(obj, Line):
213 return line_line_intersection(self, obj)
214 if isinstance(obj, Circle):
215 return line_circle_intersection(self, obj)
216
217 def distance(self, p: Point) -> float:
218 a, b, c = self.coefficients

Callers 4

intersectMethod · 0.45
intersectMethod · 0.45
reduceFunction · 0.45
sketch_ieq_triangleFunction · 0.45

Calls 2

line_line_intersectionFunction · 0.85
line_circle_intersectionFunction · 0.85

Tested by

no test coverage detected