From b0dd97ee6bf8d5daa587da40ad941efac68152df Mon Sep 17 00:00:00 2001 From: brett weiland Date: Sat, 1 Jun 2024 01:36:18 -0500 Subject: got raycasting laid out --- sphere.cuh | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 sphere.cuh (limited to 'sphere.cuh') 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 sphere : public render_object { - using render_object::render_object; - using T3 = typename vect_t3::vect_t; - public: - __device__ T distance_estimator(T3 point) const; - private: - T r_ = 1; -}; - -template __device__ T sphere::distance_estimator(T3 point) const { - return length(point) - r_; -} - -#endif -- cgit v1.2.3