google / mathfu

C++ math library developed primarily for games focused on simplicity and efficiency.
http://google.github.io/mathfu
Apache License 2.0
1.39k stars 189 forks source link

Vector<float, 4> does not have member-wise division operator. #13

Closed VladSerhiienko closed 8 years ago

VladSerhiienko commented 8 years ago

This should be added to the vector_4.h:

inline Vector<float, 4> operator/(const Vector<float, 4>& v) const {
      return Vector<float, 4>(simd4f_div(data_.simd, v.data_.simd));
  }
stewartmiles commented 8 years ago

This was fixed a while ago in https://github.com/google/mathfu/commit/6b4159fbf2159e598eb27a1ee8834af7c7f50fb7

stewartmiles commented 8 years ago

Oh wait, nope you're right we're still missing that operator.

stewartmiles commented 8 years ago

Ok I have a fix pending