How does a computer actually draw a line?

When using programs like Rhino3D or CAD, you may have wondered how they actually display lines on a monitor. This is because such programs…