im creating a cartesian plane i will plot the points but how am i supposed to determine if the points create a single straight line ? tnx

i will plot 3 points

If the points are collinear, the sum of the distances between two pairs of points equals the distance between the third pair of points.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.