Lines Matching defs:Vector2

26 class Vector2 {
36 Vector2();
37 Vector2(T x, T y);
38 explicit Vector2(const T* v);
39 virtual ~Vector2();
41 Vector2 Normalized() const;
42 T Dot(const Vector2<T>& other) const;
43 T Cross(const Vector2<T>& other) const;
44 Vector2 operator-() const;
45 Vector2 operator-(const Vector2<T>& other) const;
46 Vector2 operator+(const Vector2<T>& other) const;
47 Vector2 operator/(T scale) const;
48 Vector2 operator*(T scale) const;
49 Vector2 operator*(const Vector2<T>& other) const;
50 Vector2& operator*=(const Vector2<T>& other);
51 Vector2& operator+=(const Vector2<T>& other);
52 Vector2& operator=(const Vector2& other);
55 bool operator==(const Vector2& other) const;
56 bool operator!=(const Vector2& other) const;
57 bool IsNearEqual(const Vector2& other, T threshold = std::numeric_limits<T>::epsilon()) const;
68 typedef Vector2<int> UIPoint;
69 typedef Vector2<float> Vector2f;
70 typedef Vector2<double> Vector2d;
72 Vector2<T>::Vector2()
76 Vector2<T>::Vector2(T x, T y)
83 Vector2<T>::Vector2(const T* v)
90 Vector2<T>::~Vector2()
94 Vector2<T> Vector2<T>::Normalized() const
96 Vector2<T> rNormalize(*this);
102 T Vector2<T>::Dot(const Vector2<T>& other) const
111 T Vector2<T>::Cross(const Vector2<T>& other) const
119 Vector2<T> Vector2<T>::operator-() const
121 Vector2<T> rNeg;
129 Vector2<T> Vector2<T>::operator-(const Vector2<T>& other) const
131 Vector2<T> rSub(*this);
140 Vector2<T> Vector2<T>::operator+(const Vector2<T>& other) const
142 Vector2<T> rAdd(*this);
147 Vector2<T> Vector2<T>::operator/(T scale) const
157 Vector2<T> Vector2<T>::operator*(T scale) const
159 Vector2<T> rMult(*this);
168 Vector2<T> Vector2<T>::operator*(const Vector2<T>& other) const
170 Vector2<T> rMult(*this);
175 Vector2<T>& Vector2<T>::operator*=(const Vector2<T>& other)
184 Vector2<T>& Vector2<T>::operator+=(const Vector2<T>& other)
192 Vector2<T>& Vector2<T>::operator=(const Vector2<T>& other)
201 T Vector2<T>::operator[](int index) const
207 inline T& Vector2<T>::operator[](int index)
213 inline bool Vector2<T>::operator==(const Vector2& other) const
221 inline bool Vector2<T>::operator!=(const Vector2& other) const
229 bool Vector2<T>::IsNearEqual(const Vector2& other, T threshold) const
237 inline T* Vector2<T>::GetData()
243 T Vector2<T>::GetLength() const
249 T Vector2<T>::GetSqrLength() const
257 T Vector2<T>::Normalize()
272 bool Vector2<T>::IsInfinite() const
278 bool Vector2<T>::IsNaN() const