I am trying to write function in QGIS via function editor and the problem is to call QGIS built-in functions e.g. azimuth, centroid... etc. When I run my script, I get
'global name 'azimuth' is not defined'.
The same problem I got while I'm not specified module 'math' to function degree. My function code is on the picture:
I imported different libraries, nevertheless function doesn't work. Does anyone have any ideas how to call these functions?