When three or more points lie on a straight line points are called collinear points.
To check if given three points are collinear or not, we need to find the area of triangle formed by triangle. If area of triangle formed by those three points is zero will be collinear, otherwise they are not collinear.