summaryrefslogtreecommitdiff
path: root/sphere.cuh
diff options
context:
space:
mode:
authorbrett weiland <brettsweiland@gmail.com>2024-06-01 01:36:18 -0500
committerbrett weiland <brettsweiland@gmail.com>2024-06-01 01:36:18 -0500
commitb0dd97ee6bf8d5daa587da40ad941efac68152df (patch)
treef162d32767e0b0f84bed284f6e8ab2c5309ff248 /sphere.cuh
parent093200a449ea38952de52012e324036c106e294b (diff)
got raycasting laid out
Diffstat (limited to 'sphere.cuh')
-rw-r--r--sphere.cuh17
1 files changed, 0 insertions, 17 deletions
diff --git a/sphere.cuh b/sphere.cuh
deleted file mode 100644
index 33c77f2..0000000
--- a/sphere.cuh
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef SPHERE_H
-#define SPHERE_H
-#include "render_object.cuh"
-template<class T> class sphere : public render_object<T> {
- using render_object<T>::render_object;
- using T3 = typename vect_t3<T>::vect_t;
- public:
- __device__ T distance_estimator(T3 point) const;
- private:
- T r_ = 1;
-};
-
-template <class T> __device__ T sphere<T>::distance_estimator(T3 point) const {
- return length(point) - r_;
-}
-
-#endif