summaryrefslogtreecommitdiff
path: root/share/hackvr/meshes/radial_to_cartesian.py
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2022-08-17 21:34:02 -0500
committerepoch <epoch@thebackupbox.net>2022-08-17 21:34:02 -0500
commit6492ba6b4107a4da228e18db4fc5fc871bfb0579 (patch)
tree11301c4e20d9a1448337e73b62a16ab1bfeba457 /share/hackvr/meshes/radial_to_cartesian.py
parent49d54d7582bdcbdcff5637e72e9f29bb5cc571bd (diff)
downloadhackvr-master.tar.gz
hackvr-master.zip
updated README to show that everything that got deleted went to an -extras repo. also, hackvr script updated to be better bashHEADmaster
Diffstat (limited to 'share/hackvr/meshes/radial_to_cartesian.py')
-rwxr-xr-xshare/hackvr/meshes/radial_to_cartesian.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/share/hackvr/meshes/radial_to_cartesian.py b/share/hackvr/meshes/radial_to_cartesian.py
deleted file mode 100755
index 4f4370a..0000000
--- a/share/hackvr/meshes/radial_to_cartesian.py
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/python
-###
-### so... instead of x,y,z then more x,y,z we take x,y,z then x,y,z rotations and a distance.
-### so input would look like... 0 0 0 0 0 90 10
-### and the output should be... addshape 0 2 0 0 0 0 0 10
-import sys
-import math
-x=int(sys.argv[1]);
-y=int(sys.argv[2]);
-z=int(sys.argv[3]);
-d=int(sys.argv[4]);
-r=int(sys.argv[5]);
-#print("{} {} {}\n".format(x, y, z))
-x=math.sin(d * 2.0 * math.pi / 360.0)*r
-y=math.cos(d * 2.0 * math.pi / 360.0)*r
-print("{} {} 0".format(x,y))