The lines a, x + b, y + c1 = 0 and a2 x + b2 y + c2 = 0 will be perpendicular is:

a1a2 = b1b2

a1a2 + b1b2 = 0

a1c2 + a1c2 = 0