You have to be able to visualize in 3D space, indeed, and think of white (+), black (0) and negative ('-white', or 'etihw') as blobs in 3D space, effecting colors, masks and displacements.
Btw. if you use vdisp or redirect, and want an evenly wide line and no surprises when land is going up or down, stretch Y and the direction the line is warped to. And when you want to keep the center of the line in the original center, set vdisp X/Z to 1 and offset to -0.5 and use final multiplier to set its amount.