message: add barycentric interpolation for vec_t<>
diff: @@ -707,6 +707,20 @@ namespace ospcommon {
  return v * rsqrt(max(1e-6f, dot(v, v)));
  }
  + // -------------------------------------------------------
  + // interpolation
  + // -------------------------------------------------------
  +
  + // barycentric interpolation
  + template <typename T, int N, bool A>
  + inline vec_t<T, N, A> interpolate_uv(const vec_t<float, 3> &f,
  + const vec_t<T, N, A> &a,
  + const vec_t<T, N, A> &b,
  + const vec_t<T, N, A> &c)
  + {
  + return f.x*a + f.y*b + f.z*c;
  + }
  +
  // -------------------------------------------------------
  // ostream operators
  // -------------------------------------------------------
  