| 1020 | |
| 1021 | template <typename T, typename U> |
| 1022 | inline typename disable_if<is_matrix<U>, const typename vc_rebind_promote<T,U,2>::type >::type operator* ( |
| 1023 | const vector<T,2>& v, |
| 1024 | const U& s |
| 1025 | ) |
| 1026 | { |
| 1027 | typedef typename vc_rebind_promote<T,U,2>::type ret_type; |
| 1028 | return ret_type(v.x()*s, v.y()*s); |
| 1029 | } |
| 1030 | |
| 1031 | // ---------------------------------------------------------------------------------------- |
| 1032 |