Solved

Checking if 3 points are collinear?

Posted on 2008-10-20
3
1,489 Views
Last Modified: 2013-11-25
Hi,

How can I check if 3 points are collinear?

Thanks
0
Comment
Question by:DJ_AM_Juicebox
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 250 total points
ID: 22762668
0
 
LVL 6

Assisted Solution

by:Talmash
Talmash earned 250 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 84

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sumHeights2  challenge 7 87
count7 challenge 12 103
Advice in Xamarin 21 56
Not seen Link button 5 15
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now