Changeset 1401 for trunk/src/lol/math/vector.h
- Timestamp:
- May 19, 2012, 2:42:33 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lol/math/vector.h
r1381 r1401 19 19 #include <stdint.h> 20 20 #include <cmath> 21 #if !defined __ANDROID__ 22 # include <iostream> 23 #endif 21 #include <ostream> 22 #include <algorithm> 24 23 25 24 #include "lol/math/half.h" … … 236 235 DECLARE_MEMBER_OPS(Vec2, x) 237 236 238 #if !defined __ANDROID__239 237 template<typename U> 240 238 friend std::ostream &operator<<(std::ostream &stream, Vec2<U> const &v); 241 #endif242 239 }; 243 240 … … 270 267 271 268 inline T norm() const { return length(*this); } 272 #if !defined __ANDROID__273 269 template<typename U> 274 270 friend std::ostream &operator<<(std::ostream &stream, Cmplx<U> const &v); 275 #endif276 271 277 272 T x, y; … … 494 489 DECLARE_MEMBER_OPS(Vec3, x) 495 490 496 #if !defined __ANDROID__497 491 template<typename U> 498 492 friend std::ostream &operator<<(std::ostream &stream, Vec3<U> const &v); 499 #endif500 493 }; 501 494 … … 903 896 DECLARE_MEMBER_OPS(Vec4, x) 904 897 905 #if !defined __ANDROID__906 898 template<typename U> 907 899 friend std::ostream &operator<<(std::ostream &stream, Vec4<U> const &v); 908 #endif909 900 }; 910 901 … … 984 975 } 985 976 986 #if !defined __ANDROID__987 977 template<typename U> 988 978 friend std::ostream &operator<<(std::ostream &stream, Quat<U> const &v); 989 #endif990 979 991 980 /* XXX: storage order is wxyz, unlike vectors! */ … … 1593 1582 void printf() const; 1594 1583 1595 #if !defined __ANDROID__1596 1584 template<class U> 1597 1585 friend std::ostream &operator<<(std::ostream &stream, Mat2<U> const &m); 1598 #endif1599 1586 1600 1587 inline Mat2<T> operator +(Mat2<T> const m) const … … 1718 1705 void printf() const; 1719 1706 1720 #if !defined __ANDROID__1721 1707 template<class U> 1722 1708 friend std::ostream &operator<<(std::ostream &stream, Mat3<U> const &m); 1723 #endif1724 1709 1725 1710 inline Mat3<T> operator +(Mat3<T> const m) const … … 1885 1870 void printf() const; 1886 1871 1887 #if !defined __ANDROID__1888 1872 template<class U> 1889 1873 friend std::ostream &operator<<(std::ostream &stream, Mat4<U> const &m); 1890 #endif1891 1874 1892 1875 inline Mat4<T> operator +(Mat4<T> const &m) const
Note: See TracChangeset
for help on using the changeset viewer.