diff --git a/src/inverse-stereographic-projection.py b/src/inverse-stereographic-projection.py index 1cb2b25f74225bb9fa50a58d25dff2f1466d4218..703ffa714de07e274fc1cebe6d0aa3786e3cda1c 100644 --- a/src/inverse-stereographic-projection.py +++ b/src/inverse-stereographic-projection.py @@ -2,6 +2,9 @@ def f(x): normSquared = x[0]*x[0]+x[1]*x[1] return [2*x[0] / (normSquared+1), 2*x[1] / (normSquared+1), (normSquared-1)/ (normSquared+1)] + #a = 20 + #normSquared = a*a*(x[0]*x[0]+x[1]*x[1]) + #return [a*2*x[0] / (normSquared+1), a*2*x[1] / (normSquared+1), (normSquared-1)/ (normSquared+1)] def df(x): normSquared = x[0]*x[0]+x[1]*x[1]