summaryrefslogtreecommitdiff
path: root/src/rotate.h
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-09-19 14:36:13 -0400
committerStan Seibert <stan@mtrr.org>2011-09-19 14:36:13 -0400
commita21b05e4727403e2e061234289af9e60e6022e5a (patch)
tree7a7d4c5809c370f3e542cfc8cb0bec7c2e4f5cdc /src/rotate.h
parentcfecff941fc619eb7269128afc62d9c11ae78aff (diff)
parenta38c56ff1e268298568077af7f03c8ac64c6fb82 (diff)
downloadchroma-a21b05e4727403e2e061234289af9e60e6022e5a.tar.gz
chroma-a21b05e4727403e2e061234289af9e60e6022e5a.tar.bz2
chroma-a21b05e4727403e2e061234289af9e60e6022e5a.zip
merge relayout branch
Diffstat (limited to 'src/rotate.h')
-rw-r--r--src/rotate.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/rotate.h b/src/rotate.h
deleted file mode 100644
index 15f8037..0000000
--- a/src/rotate.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef __ROTATE_H__
-#define __ROTATE_H__
-
-#include "linalg.h"
-#include "matrix.h"
-
-__device__ const Matrix IDENTITY_MATRIX = {1,0,0,0,1,0,0,0,1};
-
-__device__ Matrix
-make_rotation_matrix(float phi, const float3 &n)
-{
- float cos_phi = cosf(phi);
- float sin_phi = sinf(phi);
-
- return IDENTITY_MATRIX*cos_phi + (1-cos_phi)*outer(n,n) +
- sin_phi*make_matrix(0,n.z,-n.y,-n.z,0,n.x,n.y,-n.x,0);
-}
-
-/* rotate points counterclockwise, when looking towards +infinity,
- through an angle `phi` about the axis `n`. */
-__device__ float3
-rotate(const float3 &a, float phi, const float3 &n)
-{
- return make_rotation_matrix(phi,n)*a;
-}
-
-#endif