Barycentric coordinates and problems of colinearity of points and crossing of straight lines