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

Method cross

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

Source from the content-addressed store, hash-verified

235 return abs(a * x + b * y) < ATOM
236
237 def cross(self, other: Line) -> float:
238 a, b, _ = self.coefficients
239 x, y, _ = other.coefficients
240 return a * y - b * x
241
242 def dot(self, other: Line) -> float:
243 a, b, _ = self.coefficients

Callers 7

all_eqangles_8pointsMethod · 0.80
all_perpsMethod · 0.80
all_eqratios_8pointsMethod · 0.80
test_crossMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_crossMethod · 0.64