Create a line parallel to AB through C - compare its equation:
Or create the perpendicular through A, or through C:
Move B to watch how the equations change: