#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)
{
}
__host__
- void setCentre(const cpu::float3& centre)
+ void setCentre(const float3& centre)
{
this->centre = centre;
}
}
__device__
- float hCarre(cpu::float2 xySol)
+ float hCarre(float2 xySol)
{
float a = (centre.x - xySol.x);
float b = (centre.y - xySol.y);
private:
float r;
- cpu::float3 centre;
+ float3 centre;
float hueInitial;
float rCarre;