Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
Solved

# Checking if 3 points are collinear?

Posted on 2008-10-20
Medium Priority
1,526 Views
Hi,

How can I check if 3 points are collinear?

Thanks
0
Question by:DJ_AM_Juicebox
• 2

LVL 85

Accepted Solution

ozo earned 1000 total points
ID: 22762668
0

LVL 6

Assisted Solution

Talmash earned 1000 total points
ID: 22784672
in case you are interested with 2D lines, OZO's answer is fine.

in case you want a 3D (streometric),

and you have 3 points A,B,C with coordinations (Xa,Ya,Za,..,Xc,Yc,Zc)

do:
check if X,Y for all 3 points are linear.
check if X,Z for all 3 points are linear. (use Z coordinations as Y)
check if Y,Z for all 3 point are linear. (use Z coordinations as X)

tal
0

LVL 85

Expert Comment

ID: 22785275
area works in 3D too
the magnitude of the cross product of any two sides is proportional to area
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are taking giant steps in technological advances in the field of wireless telephony. At just 10 years since the advent of smartphones, it is crucial to examine the benefits and disadvantages that have been report to us.
This is a research brief on the potential colonization of humans on Mars.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
###### Suggested Courses
Course of the Month13 days, 5 hours left to enroll