summaryrefslogtreecommitdiff
path: root/transform.py
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-06-02 15:00:26 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-06-02 15:00:26 -0400
commit8bbdf7f53b918857a09a9bee4a158f13834bfce6 (patch)
tree0af80a167c25af46eb21f285f5bca4647c0b7e5c /transform.py
parentd0825a136ff65b36069ff8b078b9fd97adeed0df (diff)
downloadchroma-8bbdf7f53b918857a09a9bee4a158f13834bfce6.tar.gz
chroma-8bbdf7f53b918857a09a9bee4a158f13834bfce6.tar.bz2
chroma-8bbdf7f53b918857a09a9bee4a158f13834bfce6.zip
triangle mesh is now stored everywhere as a split list of vertices and triangles
Diffstat (limited to 'transform.py')
-rw-r--r--transform.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/transform.py b/transform.py
index ef8c96c..4793c0f 100644
--- a/transform.py
+++ b/transform.py
@@ -17,8 +17,4 @@ def rotate(x, phi, n):
Rotate an array of points `x` through an angle phi counter-clockwise
around the axis `n` (when looking towards +infinity).
"""
- x = np.asarray(x)
-
- r = make_rotation_matrix(phi, n)
-
- return np.inner(x,r)
+ return np.inner(np.asarray(x),make_rotation_matrix(phi, n))