X-Git-Url: http://git.euphorik.ch/?p=GPU.git;a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F04_RayTracing%2Fmoo%2Fdevice%2FSphere.h;h=a437daba76a7ec4a7c7767a0facc1682358146e5;hp=0567fb8a389d70271c09af289856206cdee21ce0;hb=2fd5d915e8a9de4d957d6031d2d68088784eac3c;hpb=f2c6a4fc79746e2d5c6678699bd2ca93ffc49bcc diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/device/Sphere.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/device/Sphere.h index 0567fb8..a437dab 100644 --- a/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/device/Sphere.h +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/device/Sphere.h @@ -2,14 +2,13 @@ #define SPHERE_H #include "cudaTools.h" -#include "cudaType_CPU.h" #include "MathTools.h" class Sphere { public: __host__ - Sphere(cpu::float3 centre, float r, float hue) : + Sphere(float3 centre, float r, float hue) : centre(centre), hueInitial(hue) { @@ -22,7 +21,7 @@ class Sphere } __host__ - void setCentre(const cpu::float3& centre) + void setCentre(const float3& centre) { this->centre = centre; } @@ -41,7 +40,7 @@ class Sphere } __device__ - float hCarre(cpu::float2 xySol) + float hCarre(float2 xySol) { float a = (centre.x - xySol.x); float b = (centre.y - xySol.y); @@ -86,7 +85,7 @@ class Sphere private: float r; - cpu::float3 centre; + float3 centre; float hueInitial; float rCarre;