~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to NuxCore/Math/Vector2.h

  • Committer: Jay Taoko
  • Date: 2011-10-21 23:49:15 UTC
  • mfrom: (508.1.2 nux-20)
  • Revision ID: jay.taoko@canonical.com-20111021234915-hnzakb5ndebica8i
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    inline Vec2<T>& operator = (const Vec4<T>&);
47
47
    inline Vec2<T>& operator = (const Vec3<T>&);
48
48
 
49
 
    inline t_bool operator == (const Vec2<T>&) const;
50
 
    inline t_bool operator != (const Vec2<T>&) const;
 
49
    inline bool operator == (const Vec2<T>&) const;
 
50
    inline bool operator != (const Vec2<T>&) const;
51
51
    inline Vec2<T> operator+ (const Vec2<T>&) const;
52
52
    inline Vec2<T> operator* (const Vec2<T>&) const;
53
53
    inline Vec2<T> operator- (const Vec2<T>&) const;
101
101
    y = fy;
102
102
  }
103
103
 
104
 
//Vec2<T>::Vec2(t_double fx, t_double fy)
 
104
//Vec2<T>::Vec2(double fx, double fy)
105
105
//{
106
 
//    x = t_float(fx);
107
 
//    y = t_float(fy);
 
106
//    x = float(fx);
 
107
//    y = float(fy);
108
108
//}
109
109
//
110
 
//Vec2<T>::Vec2(t_int fx, t_int fy)
 
110
//Vec2<T>::Vec2(int fx, int fy)
111
111
//{
112
 
//    x = t_float(fx);
113
 
//    y = t_float(fy);
 
112
//    x = float(fx);
 
113
//    y = float(fy);
114
114
//}
115
115
 
116
116
  template <typename T>
145
145
  }
146
146
 
147
147
  template <typename T>
148
 
  t_bool Vec2<T>::operator == (const Vec2<T>& v) const
 
148
  bool Vec2<T>::operator == (const Vec2<T>& v) const
149
149
  {
150
150
    if ( (x == v.x) &&
151
151
         (y == v.y) )
157
157
  }
158
158
 
159
159
  template <typename T>
160
 
  t_bool Vec2<T>::operator != (const Vec2<T>& v) const
 
160
  bool Vec2<T>::operator != (const Vec2<T>& v) const
161
161
  {
162
162
    return ! (*this == v);
163
163
  }