summaryrefslogtreecommitdiff
path: root/texmf-dist/scripts/ketpic/ketlib/ketpicscifiles6/Parapt.sci
diff options
context:
space:
mode:
Diffstat (limited to 'texmf-dist/scripts/ketpic/ketlib/ketpicscifiles6/Parapt.sci')
-rwxr-xr-xtexmf-dist/scripts/ketpic/ketlib/ketpicscifiles6/Parapt.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/texmf-dist/scripts/ketpic/ketlib/ketpicscifiles6/Parapt.sci b/texmf-dist/scripts/ketpic/ketlib/ketpicscifiles6/Parapt.sci
new file mode 100755
index 00000000..5adb4837
--- /dev/null
+++ b/texmf-dist/scripts/ketpic/ketlib/ketpicscifiles6/Parapt.sci
@@ -0,0 +1,12 @@
+// 08.07.11
+// 10.01.02
+
+function Out=Parapt(P)
+ global PHI THETA
+ x=P(1);
+ y=P(2);
+ z=P(3);
+ Xz=-x*sin(PHI)+y*cos(PHI);
+ Yz=-x*cos(PHI)*cos(THETA)-y*sin(PHI)*cos(THETA)+z*sin(THETA);
+ Out=[Xz,Yz];
+endfunction