cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

## Co-planar or non-Co-planar with 4 points ?  19-Tanzanite

## Co-planar or non-Co-planar with 4 points ?

Hi Everyone.
From the following : Co-planar or non-Co-planar with the 4 points ?
Best Regards.
Loi.

1 ACCEPTED SOLUTION

Accepted Solutions  21-Topaz I
(To:lvl107)

Hi,

A small program that takes the first three points expressed as vectors and calculates the equation of that plane defined by those three points.

Program then calculates the distance from the fourth point represented as a vector from the plane of the other three.

If the distance is zero the four points are coplanar.  If there is a positive distance then points are not coplanar. 5 REPLIES 5  21-Topaz I
(To:lvl107)

Hi,

A small program that takes the first three points expressed as vectors and calculates the equation of that plane defined by those three points.

Program then calculates the distance from the fourth point represented as a vector from the plane of the other three.

If the distance is zero the four points are coplanar.  If there is a positive distance then points are not coplanar.   24-Ruby V
(To:terryhendicott)

@terryhendicott wrote:

Hi,

A small program that takes the first three points expressed as vectors and calculates the equation of that plane defined by those three points.

Hmmm, and what if the first three points happen to lie on a straight line (colinear), but the fourth does not? In this case the four points would be coplanar, but your program returns an error because of a division by zero (the "normal vector" is the zero vector here).
And even if all four points should be co-linear and they don't define a plane uniquely, the program would have to come to the result that they are of course also co-planar (even in an infinite way).

BTW, is there a special reason why you don't use ?  24-Ruby V
(To:Werner_E)

Her is a function to check for coplanarity of a vector of point coordinates of arbitrary length. I hope that I got all special cases.
This boolean function returns 1 if the points are coplanar and 0 otherwise. "coplanar2" is to be preferred as it also deals with the numerical inaccuracies which may occur when dealing with real numbers.   19-Tanzanite
(To:Werner_E)   19-Tanzanite
(To:terryhendicott)

Many Thanks, Terry.: Best Regards.

Loi. Announcements
Top Tags