geom3d - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

geom3d

  

centroid

  

compute the centroid of a given general tetrahedron or a given triangle or a list of points in space

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

centroid(G, g)

Parameters

G

-

the name of the centroid

g

-

a tetrahedron or a triangle or a list of points

Description

• 

The routine computes the centroid of a given tetrahedron, a triangle, or a list of points.

• 

For more details on the centroid G use coordinates.

• 

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

Examples

withgeom3d:

pspointA,0,0,0,pointB,1,0,0,pointC,0,1,0,pointF,0,0,1:

gtetrahedronABCF,ps,triangleBCF,B,C,F:

centroidG1,ps:

coordinatesG1

14,14,14

(1)

centroidG2,ABCF:

coordinatesG1

14,14,14

(2)

centroidG3,BCF:

coordinatesG3

13,13,13

(3)

See Also

geom3d[coordinates]

geom3d[gtetrahedron]

 


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