Is it possible to define reusable user functions or scripts?
I know there is a Function command, but it seems it is oriented to define univariable curves or two variable surfaces.
What I am looking for is a way of defining a reusable piece of code that accepts several Geogebra objects as parameters and returns another object as result.
For example, I need to créate a unit vector from the dip and dip direction of a plane that represents its normal vector.
Now I have to key the equations for each plane I have.
I would like something like (using pseudocode):
[Vector] normalVectorFromDip(Angle dip, Angle dipDir)
local n= Vector
....code goes here.....
Is there a way to define user code functions in Geogebra?