Skip to content

Commit

Permalink
geom3d/polygonCentroid3d.m: update doc header
Browse files Browse the repository at this point in the history
  • Loading branch information
dlegland committed Feb 28, 2022
1 parent 6f01baf commit a32a18f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions matGeom/geom3d/polygonCentroid3d.m
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
function centroid = polygonCentroid3d(varargin)
%POLYGONCENTROID3D Centroid (or center of mass) of a polygon.
%POLYGONCENTROID3D Centroid (or center of mass) of a polygon.
%
% PTC = polygonCentroid3d(POLY)
% Computes center of mass of a polygon defined by POLY. POLY is a N-by-3
% array of double containing coordinates of polygon vertices.
% array of double containing coordinates of polygon vertices. The result
% PTC is given as a 1-by-3 numeric array.
% The algorithm assumes (1) that the vertices of the polygon are within
% the same plane and (2) that the planar projection of the polygon (on
% the embedding plane) do not self-intersect.
%
% PTC = polygonCentroid3d(VX, VY, VZ)
% Specifies vertex coordinates as three separate arrays.
Expand All @@ -16,12 +20,12 @@
% 5.0000 5.0000 10.0000
%
% See also
% polygons3d, polygonArea3d, polygonCentroid
% polygons3d, polygonArea3d, polygonCentroid, planePosition, planePoint
%

% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% e-mail: david.legland@inrae.fr
% Created: 2007-09-18
% Copyright 2007 INRA - CEPIA Nantes - MIAJ (Jouy-en-Josas).

Expand Down

0 comments on commit a32a18f

Please sign in to comment.