Added vector calculation to line object. Closes #38.