|
|
@ -948,7 +948,7 @@ namespace detail |
|
|
|
{ |
|
|
|
{ |
|
|
|
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'mix' only accept floating-point inputs"); |
|
|
|
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'mix' only accept floating-point inputs"); |
|
|
|
|
|
|
|
|
|
|
|
return a ? x : y; |
|
|
|
return a ? y : x; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
template <typename T> |
|
|
@ -969,7 +969,7 @@ namespace detail |
|
|
|
++i |
|
|
|
++i |
|
|
|
) |
|
|
|
) |
|
|
|
{ |
|
|
|
{ |
|
|
|
result[i] = a[i] ? x[i] : y[i]; |
|
|
|
result[i] = a[i] ? y[i] : x[i]; |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
@ -992,7 +992,7 @@ namespace detail |
|
|
|
++i |
|
|
|
++i |
|
|
|
) |
|
|
|
) |
|
|
|
{ |
|
|
|
{ |
|
|
|
result[i] = a[i] ? x[i] : y[i]; |
|
|
|
result[i] = a[i] ? y[i] : x[i]; |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
@ -1015,7 +1015,7 @@ namespace detail |
|
|
|
++i |
|
|
|
++i |
|
|
|
) |
|
|
|
) |
|
|
|
{ |
|
|
|
{ |
|
|
|
result[i] = a[i] ? x[i] : y[i]; |
|
|
|
result[i] = a[i] ? y[i] : x[i]; |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|