Create lianga-barsky algorithm

This is my first lab exercise from "computer graphcis". 
In this case I must make one of the three most popular line clipping algotithms. My variant realise a Liango-Barsky algorithm, that you can see now.
Details watch in this site: http://algolist.manual.ru/graphics/clip_seg.php