30 #include <cugar/linalg/vector.h> 38 HSV(
float _h,
float _s,
float _v) : h(_h), s(_s), v(_v) {}
39 HSV(float3 _in) : h(_in.x), s(_in.y), v(_in.z) {}
46 CUGAR_FORCEINLINE CUGAR_HOST_DEVICE
47 float3 hsv_to_rgb(
const HSV in)
68 float p = in.v * (1.0f - in.s);
69 float q = in.v * (1.0f - (in.s * ff));
70 float t = in.v * (1.0f - (in.s * (1.0f - ff)));
Define a vector_view POD type and plain_view() for std::vector.
Definition: diff.h:38