Skip to content

Commit

Permalink
Fix functions declaring variable length of arguments
Browse files Browse the repository at this point in the history
while it's actually a fixed number
  • Loading branch information
DelazJ authored and nyalldawson committed Aug 13, 2020
1 parent 850bfb2 commit fa1a9ac
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion resources/function_help/json/make_circle
Expand Up @@ -3,7 +3,6 @@
"type": "function",
"groups": ["GeometryGroup"],
"description": "Creates a circular polygon.",
"variableLenArguments": true,
"arguments": [
{"arg":"center", "description": "center point of the circle"},
{"arg":"radius", "description": "radius of the circle"},
Expand Down
1 change: 0 additions & 1 deletion resources/function_help/json/make_ellipse
Expand Up @@ -3,7 +3,6 @@
"type": "function",
"groups": ["GeometryGroup"],
"description": "Creates an elliptical polygon.",
"variableLenArguments": true,
"arguments": [
{"arg":"center", "description": "center point of the ellipse"},
{"arg":"semi_major_axis", "description": "semi-major axis of the ellipse"},
Expand Down
1 change: 0 additions & 1 deletion resources/function_help/json/make_rectangle_3points
Expand Up @@ -3,7 +3,6 @@
"type": "function",
"groups": ["GeometryGroup"],
"description": "Creates a rectangle from 3 points.",
"variableLenArguments": true,
"arguments": [
{"arg":"point1", "description": "First point."},
{"arg":"point2", "description": "Second point."},
Expand Down
1 change: 0 additions & 1 deletion resources/function_help/json/make_regular_polygon
Expand Up @@ -3,7 +3,6 @@
"type": "function",
"groups": ["GeometryGroup"],
"description": "Creates a regular polygon.",
"variableLenArguments": true,
"arguments": [
{"arg":"center", "description": "center of the regular polygon"},
{"arg":"radius", "description": "second point. The first if the regular polygon is inscribed. The midpoint of the first side if the regular polygon is circumscribed."},
Expand Down
5 changes: 2 additions & 3 deletions resources/function_help/json/make_square
Expand Up @@ -3,10 +3,9 @@
"type": "function",
"groups": ["GeometryGroup"],
"description": "Creates a square from a diagonal.",
"variableLenArguments": true,
"arguments": [
{"arg":"point1", "description": "First point of the regular polygon"},
{"arg":"point2", "description": "Second point"}
{"arg":"point1", "description": "First point of the diagonal},
{"arg":"point2", "description": "Last point of the diagonal"}
],
"examples": [
{ "expression":"geom_to_wkt(make_square( make_point(0,0), make_point(5,5)))", "returns":"'Polygon ((0 0, -0 5, 5 5, 5 0, 0 0))'"},
Expand Down

0 comments on commit fa1a9ac

Please sign in to comment.