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

Method perpendicular_line

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

Source from the content-addressed store, hash-verified

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
180 return Line(p, p + Point(a, b))
181
182 def greater_than(self, other: Line) -> bool:
183 a, b, _ = self.coefficients

Callers 8

sketch_cc_tangentFunction · 0.95
test_sketch_bisectMethod · 0.45
perpendicular_lineMethod · 0.45
footMethod · 0.45
sketch_2l1cFunction · 0.45
sketch_exbisectFunction · 0.45
sketch_blineFunction · 0.45
sketch_tlineFunction · 0.45

Calls 2

LineClass · 0.70
PointClass · 0.70

Tested by 1

test_sketch_bisectMethod · 0.36