def get_plane_coefficients_by_three_points(a: Point, b: Point, c: Point) \ -> Plane: ab = Vector(a, b) ac = Vector(a, c) n = ab * ac return Plane.by_norm_vector_and_point(n, a)
def test_plane_by_norm_and_point(self): n = Vector.by_coords(3, 7, -5) point = Point(-1, 2, -3) expected = Plane(3, 7, -5, -26) self.assertEqual(Plane.by_norm_vector_and_point(n, point), expected)