Skip to content

Commit

Permalink
Tweak Polyline#d.centroid docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmackenzie committed Apr 18, 2019
1 parent 61a37f2 commit 353d641
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Polyline2d.elm
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ boundingBox polyline =
BoundingBox2d.containingPoints (vertices polyline)


{-| Find the centroid of the polyline. Returns `Nothing` if the polyline
has no vertices.
{-| Find the centroid (center of mass) of a polyline. Returns `Nothing` if the
polyline has no vertices.
Polyline2d.centroid stepShape
--> Just (Point2d.fromCoordinates ( 1.0, 0.5 ))
Expand Down
4 changes: 2 additions & 2 deletions src/Polyline3d.elm
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ boundingBox polyline =
BoundingBox3d.containingPoints (vertices polyline)


{-| Find the centroid of the polyline. Returns `Nothing` if the polyline
has no vertices.
{-| Find the centroid (center of mass) of a polyline. Returns `Nothing` if the
polyline has no vertices.
Polyline3d.centroid examplePolyline
--> Just (Point3d.fromCoordinates ( 0.9167, 1.333, 0.75 ))
Expand Down

0 comments on commit 353d641

Please sign in to comment.