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

Method dot

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

Source from the content-addressed store, hash-verified

240 return a * y - b * x
241
242 def dot(self, other: Line) -> float:
243 a, b, _ = self.coefficients
244 x, y, _ = other.coefficients
245 return a * x + b * y
246
247 def point_at(self, x: float = None, y: float = None) -> Optional[Point]:
248 """Get a point on line closest to (x, y)."""

Callers 5

intersectMethod · 0.45
sample_withinMethod · 0.45
_check_betweenFunction · 0.45
check_samesideFunction · 0.45
draw_lineFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected