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

Method is_parallel

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

Source from the content-addressed store, hash-verified

225 return x * a + y * b + c
226
227 def is_parallel(self, other: Line) -> bool:
228 a, b, _ = self.coefficients
229 x, y, _ = other.coefficients
230 return abs(a * y - b * x) < ATOM
231
232 def is_perp(self, other: Line) -> bool:
233 a, b, _ = self.coefficients

Callers 5

check_paraFunction · 0.95
check_eqangleFunction · 0.95
test_sketch_trapezoidMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_sketch_trapezoidMethod · 0.64