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

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

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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /