Exemplo n.º 1
0
def test_Plane_parallel_identical():
    plane1 = Plane(Vector([1, 1, 1]), 1)
    plane2 = Plane(Vector([1, 1, 1]), 1)
    assert plane1 == plane2
    assert plane1.isParallel(plane2)
Exemplo n.º 2
0
def test_Plane_parallel():
    plane1 = Plane(Vector([1, 1, 1]), 1)
    plane2 = Plane(Vector([1, 1, 1]), 2)
    assert plane1 != plane2
    assert plane1.isParallel(plane2)
Exemplo n.º 3
0
line2 = Line(normal_vector=Vector([C, D]), constant_term=k2)
answers.append(line1.intersection(line2))

# Quiz2

A = -0.412
B = 3.806
C = 0.728
k1 = -3.46
plane1 = Plane(normal_vector=Vector([A, B, C]), constant_term=k1)
D = 1.03
E = -9.515
F = -1.82
k2 = 8.65
plane2 = Plane(normal_vector=Vector([D, E, F]), constant_term=k2)
answers.append([plane1 == plane2, plane1.isParallel(plane2)])

A = 2.611
B = 5.528
C = 0.283
k1 = 4.6
plane1 = Plane(normal_vector=Vector([A, B, C]), constant_term=k1)
D = 7.715
E = 8.306
F = 5.342
k2 = 3.76
plane2 = Plane(normal_vector=Vector([D, E, F]), constant_term=k2)
answers.append([plane1 == plane2, plane1.isParallel(plane2)])

A = -7.926
B = 8.625