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

Method parallel_line

numericals.py:174–176  ·  view source on GitHub ↗
(self, p: Point)

Source from the content-addressed store, hash-verified

172 self.coefficients = a, b, c
173
174 def parallel_line(self, p: Point) -> Line:
175 a, b, _ = self.coefficients
176 return Line(coefficients=(a, b, -a * p.x - b * p.y)) # pylint: disable=invalid-unary-operand-type
177
178 def perpendicular_line(self, p: Point) -> Line:
179 a, b, _ = self.coefficients

Callers 3

parallel_lineMethod · 0.45
sketch_3peqFunction · 0.45
sketch_plineFunction · 0.45

Calls 1

LineClass · 0.70

Tested by

no test coverage detected