Find the point which divides the segment joining two given points by some ratio - Maple Help

Online Help

All Products    Maple    MapleSim


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

geom3d[OnSegment] - Find the point which divides the segment joining two given points by some ratio

Calling Sequence

OnSegment(C, A, B, k)

OnSegment(C, seg, k)

Parameters

C

-

the name of the point to be created

A, B

-

two points

seg

-

segment

k

-

ratio

Description

• 

The routine returns point C which is the point lying on the segment defined by two points A, B with ratio k

• 

For a detailed description of point C, use the routine detail (i.e., detail(C))

• 

The command with(geom3d,OnSegment) allows the use of the abbreviated form of this command.

Examples

withgeom3d:

assumea,real,b,real,c,real,d,real,ac,k,real

pointA,a,b,1,pointB,c,d,5:

tryOnSegmentC,A,B,kend try

Error, (in geom3d:-OnSegment) unable to determine if k+1 is zero

additionallyk1

OnSegmentC,A,B,k

C

(1)

coordinatesC

c~k~+a~k~+1,d~k~+b~k~+1,1+5k~k~+1

(2)

See Also

geom3d[point], geom3d[segment]


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