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

Method dot

numericals.py:137–138  ·  view source on GitHub ↗
(self, other: Point)

Source from the content-addressed store, hash-verified

135 return (x * a + y * b) / self.norm() / other.norm()
136
137 def dot(self, other: Point) -> float:
138 return self.x * other.x + self.y * other.y
139
140 def sign(self, line: Line) -> int:
141 return line.sign(self)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected