centroid - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


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

> 

with⁡geom3d:

> 

ps≔point⁡A,0,0,0,point⁡B,1,0,0,point⁡C,0,1,0,point⁡F,0,0,1:

> 

gtetrahedron⁡ABCF,ps,triangle⁡BCF,B,C,F:

> 

centroid⁡G1,ps:

> 

coordinates⁡G1

14,14,14

(1)
> 

centroid⁡G2,ABCF:

> 

coordinates⁡G1

14,14,14

(2)
> 

centroid⁡G3,BCF:

> 

coordinates⁡G3

13,13,13

(3)

See Also

geom3d[coordinates]

geom3d[gtetrahedron]