midpoint - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


geometry

  

midpoint

  

find the midpoint of segment joining two points

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

midpoint(C, A, B)

midpoint(C, seg)

Parameters

C

-

the name of the midpoint

A, B

-

two points

seg

-

segment

Description

• 

The routine finds the midpoint of two points A, B, or of a segment seg.

• 

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

• 

The command with(geometry,midpoint) allows the use of the abbreviated form of this command.

Examples

withgeometry:

pointA,0,0,pointB,2,0:

midpointC1,A,B

C1

(1)

coordinatesC1

1,0

(2)

segmentseg,A,B:

midpointC2,seg:

detailC2

name of the objectC2form of the objectpoint2dcoordinates of the point1,0

(3)

See Also

geometry[OnSegment]

geometry[point]