Changeset 1142
- Timestamp:
- Feb 16, 2012, 2:36:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lol/math/vector.h
r1141 r1142 56 56 template<typename T, int N> struct XVec2 57 57 { 58 inline Vec2<T> operator =(Vec2<T> that);58 inline Vec2<T> operator =(Vec2<T> const &that); 59 59 60 60 static int const I = (N >> 4) & 3; … … 65 65 template<typename T, int N> struct XVec3 66 66 { 67 inline Vec3<T> operator =(Vec3<T> that);67 inline Vec3<T> operator =(Vec3<T> const &that); 68 68 69 69 static int const I = (N >> 8) & 3; … … 76 76 template<typename T, int N> struct XVec4 77 77 { 78 inline Vec4<T> operator =(Vec4<T> that);78 inline Vec4<T> operator =(Vec4<T> const &that); 79 79 80 80 static int const I = (N >> 12) & 3; … … 1013 1013 1014 1014 template<typename T, int N> 1015 inline Vec2<T> XVec2<T, N>::operator =(Vec2<T> that)1015 inline Vec2<T> XVec2<T, N>::operator =(Vec2<T> const &that) 1016 1016 { 1017 1017 ptr[I] = that[0]; ptr[J] = that[1]; … … 1020 1020 1021 1021 template<typename T, int N> 1022 inline Vec3<T> XVec3<T, N>::operator =(Vec3<T> that)1022 inline Vec3<T> XVec3<T, N>::operator =(Vec3<T> const &that) 1023 1023 { 1024 1024 ptr[I] = that[0]; ptr[J] = that[1]; ptr[K] = that[2]; … … 1027 1027 1028 1028 template<typename T, int N> 1029 inline Vec4<T> XVec4<T, N>::operator =(Vec4<T> that)1029 inline Vec4<T> XVec4<T, N>::operator =(Vec4<T> const &that) 1030 1030 { 1031 1031 ptr[I] = that[0]; ptr[J] = that[1]; ptr[K] = that[2]; ptr[L] = that[3];
Note: See TracChangeset
for help on using the changeset viewer.