Vector4T lerp(float t, const Vector4T &v) const { return Vector4T(x * (1 - t) + v.x * t, y * (1 - t) + v.y * t, z * (1 - t) + v.z * t, w * (1 - t) + v.w * t); }
/// Returns a vector with components reordered. Vector4T shuffle (int i1, int i2, int i3, int i4) const { return Vector4T(get(i1), get(i2), get(i3), get(i4)); }