Changeset 1270 for trunk/src/lol/math/vector.h
 Timestamp:
 Apr 22, 2012, 3:03:54 PM (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/lol/math/vector.h
r1264 r1270 1562 1562 static Mat4<T> translate(T x, T y, T z); 1563 1563 static Mat4<T> translate(Vec3<T> v); 1564 static Mat4<T> rotate(T angle, T x, T y, T z);1565 static Mat4<T> rotate(T angle, Vec3<T> v);1566 static Mat4<T> rotate(Quat<T> q);1567 1564 1568 1565 static inline Mat4<T> translate(Mat4<T> const &mat, Vec3<T> v) 1569 1566 { 1570 1567 return translate(v) * mat; 1568 } 1569 1570 static inline Mat4<T> rotate(T angle, T x, T y, T z) 1571 { 1572 return Mat4<T>(Mat3<T>::rotate(angle, x, y, z), (T)1); 1573 } 1574 1575 static inline Mat4<T> rotate(T angle, Vec3<T> v) 1576 { 1577 return Mat4<T>(Mat3<T>::rotate(angle, v), (T)1); 1578 } 1579 1580 static inline Mat4<T> rotate(Quat<T> q) 1581 { 1582 return Mat4<T>(Mat3<T>::rotate(q), (T)1); 1571 1583 } 1572 1584
Note: See TracChangeset
for help on using the changeset viewer.