Lines Matching refs:Vector

23  * \brief Vector utility functions.
127 inline T dot (const Vector<T, Size>& a, const Vector<T, Size>& b)
136 inline T lengthSquared (const Vector<T, Size>& a)
145 inline typename de::meta::EnableIf<T, de::meta::TypesSame<T, double>::Value>::Type length (const Vector<T, Size>& a)
151 inline typename de::meta::EnableIf<T, de::meta::TypesSame<T, float>::Value>::Type length (const Vector<T, Size>& a)
157 inline T distance (const Vector<T, Size>& a, const Vector<T, Size>& b)
163 inline Vector<T, Size> cross (const Vector<T, Size>& a, const Vector<T, Size>& b)
166 return Vector<T, Size>(
173 inline Vector<T, Size> normalize (const Vector<T, Size>& a)
176 Vector<T, Size> res;
183 inline Vector<T, Size> faceForward (const Vector<T, Size>& n, const Vector<T, Size>& i, const Vector<T, Size>& ref)
189 inline Vector<T, Size> reflect (const Vector<T, Size>& i, const Vector<T, Size>& n)
195 inline Vector<T, Size> refract (const Vector<T, Size>& i, const Vector<T, Size>& n, T eta)
200 return Vector<T, Size>(T(0));
206 Vector<float, Size> mix (const Vector<float, Size>& x, const Vector<float, Size>& y, float a)
208 Vector<float, Size> res;
215 Vector<double, Size> mix (const Vector<double, Size>& x, const Vector<double, Size>& y, double a)
217 Vector<double, Size> res;
226 inline Vector<bool, Size> equal (const Vector<T, Size>& a, const Vector<T, Size>& b)
228 Vector<bool, Size> res;
235 inline Vector<bool, Size> notEqual (const Vector<T, Size>& a, const Vector<T, Size>& b)
237 Vector<bool, Size> res;
244 inline Vector<bool, Size> lessThan (const Vector<T, Size>& a, const Vector<T, Size>& b)
246 Vector<bool, Size> res;
253 inline Vector<bool, Size> lessThanEqual (const Vector<T, Size>& a, const Vector<T, Size>& b)
255 Vector<bool, Size> res;
262 inline Vector<bool, Size> greaterThan (const Vector<T, Size>& a, const Vector<T, Size>& b)
264 Vector<bool, Size> res;
271 inline Vector<bool, Size> greaterThanEqual (const Vector<T, Size>& a, const Vector<T, Size>& b)
273 Vector<bool, Size> res;
282 inline bool allEqual (const Vector<T, Size>& a, const Vector<T, Size>& b)
291 inline bool anyNotEqual (const Vector<T, Size>& a, const Vector<T, Size>& b)
302 inline Vector<bool, Size> boolNot (const Vector<bool, Size>& a)
304 Vector<bool, Size> res;
311 inline bool boolAny (const Vector<bool, Size>& a)
320 inline bool boolAll (const Vector<bool, Size>& a)
329 Vector<int, Size> chopToInt (const Vector<float, Size>& v)
331 Vector<int, Size> res;
337 // Vector construction using selection based on boolean vector.
340 inline Vector<T, Size> select (T trueVal, T falseVal, const Vector<bool, Size>& cond)
342 Vector<T, Size> res;
351 inline Vector<T, Size> select (const Vector<T, Size>& trueVal, const Vector<T, Size>& falseVal, const Vector<bool, Size>& cond)
353 Vector<T, Size> res;
362 static inline Vector<T, Size> absDiff (const Vector<T, Size>& a, const Vector<T, Size>& b)
364 Vector<T, Size> res;
373 inline tcu::Vector<T, Size> randomVector (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue)
375 tcu::Vector<T, Size> res;
383 inline Vector<float, 2> randomVec2 (de::Random& rnd)
385 return randomVector<float, 2>(rnd, tcu::Vector<float, 2>(0.0f), tcu::Vector<float, 2>(1.0f));
388 inline Vector<float, 3> randomVec3 (de::Random& rnd)
390 return randomVector<float, 3>(rnd, tcu::Vector<float, 3>(0.0f), tcu::Vector<float, 3>(1.0f));
393 inline Vector<float, 4> randomVec4 (de::Random& rnd)
395 return randomVector<float, 4>(rnd, tcu::Vector<float, 4>(0.0f), tcu::Vector<float, 4>(1.0f));
402 Vector<T, Size> FUNC_NAME (const Vector<T, Size>& v) \
404 Vector<T, Size> res; \
412 Vector<T, Size> FUNC_NAME (const Vector<T, Size>& a, const Vector<T, Size>& b) \
414 Vector<T, Size> res; \
422 Vector<T, Size> FUNC_NAME (const Vector<T, Size>& a, const Vector<T, Size>& b, const Vector<T, Size>& c) \
424 Vector<T, Size> res; \