geom3d - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Geometry : 3-D Euclidean : Point Functions : geom3d/AreCollinear

geom3d

  

AreCollinear

  

test if three points are collinear

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

AreCollinear(P, Q, R, cond)

Parameters

P, Q, R

-

three points

cond

-

(optional) name

Description

• 

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.

Examples

withgeom3d:

pointA,0,0,0,pointB,1,0,0,pointC,11,0,0:

AreCollinearA,B,C

true

(1)

pointC,a,b,c:

AreCollinearA,B,C,'cond'

FAIL

(2)

make necessary assumption so that A, B, C are collinear

assumeopcond

AreCollinearA,B,C

true

(3)

See Also

geom3d[AreCoplanar]

geom3d[IsOnObject]

geom3d[point]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam