geom3d
AreCollinear
test if three points are collinear
Calling Sequence
Parameters
Description
Examples
AreCollinear(P, Q, R, cond)
P, Q, R
-
three points
cond
(optional) name
Points P, Q, R are said to be collinear if they lie on the same straight line.
The routine returns true if P, Q, and R are collinear; false if they are not; and FAIL in case it is unable to determine if the three points are collinear.
If FAIL is returned, and the optional argument cond is given, the condition that makes the points collinear is assigned to this argument.
The command with(geom3d,AreCollinear) allows the use of the abbreviated form of this command.
with⁡geom3d:
point⁡A,0,0,0,point⁡B,1,0,0,point⁡C,11,0,0:
AreCollinear⁡A,B,C
true
point⁡C,a,b,c:
AreCollinear⁡A,B,C,cond
FAIL
make necessary assumption so that A, B, C are collinear
assume⁡op⁡cond
See Also
geom3d[AreCoplanar]
geom3d[IsOnObject]
geom3d[point]
Download Help Document