Skip to content
Permalink
Browse files

Merge pull request #4949 from lbartoletti/inclination_help

add missing help for inclination
  • Loading branch information
nyalldawson committed Aug 2, 2017
2 parents 1887cff + d88a7f4 commit a0010a1d9e6e5ddb48276c303e6422196dc30deb
Showing with 16 additions and 0 deletions.
  1. +16 −0 resources/function_help/json/inclination
@@ -0,0 +1,16 @@
{
"name": "inclination",
"type": "function",
"description": "Returns the inclination measured from the zenith (0) to the nadir (180) on point_a to point_b.",
"arguments": [
{"arg":"point_a","description":"point geometry"},
{"arg":"point_b","description":"point geometry"}
],
"examples": [
{ "expression":"inclination( make_point( 5, 10, 0 ), make_point( 5, 10, 5 ) )", "returns":"0.0"},
{ "expression":"inclination( make_point( 5, 10, 0 ), make_point( 5, 10, 0 ) )", "returns":"90.0"},
{ "expression":"inclination( make_point( 5, 10, 0 ), make_point( 50, 100, 0 ) )", "returns":"90.0"},
{ "expression":"inclination( make_point( 5, 10, 0 ), make_point( 5, 10, -5 ) )", "returns":"180.0"}

]
}

0 comments on commit a0010a1

Please sign in to comment.
You can’t perform that action at this time.