mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Also added a Color3 alias
This commit is contained in:
@@ -25,4 +25,5 @@ struct Vec3 { // TODO: Maybe make this into a class
|
|||||||
__host__ __device__ Vec3 normalize() const { double len = sqrt(x * x + y * y + z * z); return Vec3(x / len, y / len, z / len); }
|
__host__ __device__ Vec3 normalize() const { double len = sqrt(x * x + y * y + z * z); return Vec3(x / len, y / len, z / len); }
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef Vec3 Point3;
|
typedef Vec3 Point3;
|
||||||
|
typedef Vec3 Color3;
|
||||||
Reference in New Issue
Block a user