~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to NuxCore/Math/Vector3.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:
42
42
    inline Vec3<T>& operator = (const Vec3<T>&);
43
43
    inline Vec3<T>& operator = (const Vec4<T>&);
44
44
 
45
 
    inline t_bool operator == (const Vec3<T>&) const;
46
 
    inline t_bool operator != (const Vec3<T>&) const;
 
45
    inline bool operator == (const Vec3<T>&) const;
 
46
    inline bool operator != (const Vec3<T>&) const;
47
47
    inline Vec3<T> operator + (const Vec3<T>&) const;
48
48
    inline Vec3<T> operator * (const Vec3<T>&) const;
49
49
    inline Vec3<T> operator - (const Vec3<T>&) const;
96
96
    z = fz;
97
97
  }
98
98
 
99
 
//Vec3::Vec3(t_double fx, t_double fy, t_double fz)
 
99
//Vec3::Vec3(double fx, double fy, double fz)
100
100
//{
101
101
//    x = T(fx);
102
102
//    y = T(fy);
103
103
//    z = T(fz);
104
104
//}
105
105
//
106
 
//Vec3::Vec3(t_int fx, t_int fy, t_int fz)
 
106
//Vec3::Vec3(int fx, int fy, int fz)
107
107
//{
108
108
//    x = T(fx);
109
109
//    y = T(fy);
137
137
  }
138
138
 
139
139
  template <typename T>
140
 
  t_bool Vec3<T>::operator == (const Vec3<T>& v) const
 
140
  bool Vec3<T>::operator == (const Vec3<T>& v) const
141
141
  {
142
142
    if ( (x == v.x) &&
143
143
         (y == v.y) &&
150
150
  }
151
151
 
152
152
  template <typename T>
153
 
  t_bool Vec3<T>::operator != (const Vec3<T>& v) const
 
153
  bool Vec3<T>::operator != (const Vec3<T>& v) const
154
154
  {
155
155
    return ! (*this == v);
156
156
  }