Example #1
0
 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);
 }
Example #2
0
 /// 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)); }