geometry - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Geometry : 2-D Euclidean : Triangle Geometry : geometry/centroid

geometry

  

centroid

  

compute the centroid of a triangle or a set or list of points on a plane

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

centroid(G, g)

Parameters

G

-

the name of the centroid

g

-

triangle, set of points, or list of points

Description

• 

If g is a triangle, the centroid is the point of intersections of medians.

• 

For a detailed description of the centroid G, use the routine detail (i.e., detail(G))

• 

Note that the routine only works if the vertices of the triangle are known.

• 

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

Examples

withgeometry:

pspointA,0,0,pointB,2,0,pointC,1,3,pointF,1,6

ps:=A,B,C,F

(1)

centroidG,ps

G

(2)

formG

point2d

(3)

coordinatesG

1,94

(4)

detailG

name of the objectGform of the objectpoint2dcoordinates of the point1,94

(5)

See Also

geometry[midpoint]

geometry[OnSegment]

geometry[point]

geometry[triangle]

 


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