|
|
|
@ -95,18 +95,6 @@ namespace detail |
|
|
|
|
GLM_FUNC_DECL explicit tvec1( |
|
|
|
|
T const & s); |
|
|
|
|
|
|
|
|
|
//////////////////////////////////////
|
|
|
|
|
// Swizzle constructors
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////
|
|
|
|
|
// Conversion scalar constructors
|
|
|
|
|
|
|
|
|
|
//! Explicit converions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_DECL explicit tvec1(U const & s); |
|
|
|
|
|
|
|
|
|
//////////////////////////////////////
|
|
|
|
|
// Conversion vector constructors
|
|
|
|
|
|
|
|
|
@ -184,6 +172,109 @@ namespace detail |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> & operator>>=(tvec1<U, P> const & v); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator+(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator+(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator+(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator-(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator-(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator- (tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator*(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator*(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator*(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator/(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator/(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator/(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator-(tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL bool operator==(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL bool operator!=(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator%(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator%(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator%(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator&(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator&(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator&(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator|(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator|(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator|(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator^(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator^(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator^(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator<<(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator<<(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator<<(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator>>(tvec1<T, P> const & v, T const & s); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator>>(T const & s, tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator>>(tvec1<T, P> const & v1, tvec1<T, P> const & v2); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
|
|
GLM_FUNC_DECL tvec1<T, P> operator~(tvec1<T, P> const & v); |
|
|
|
|
|
|
|
|
|
}//namespace detail
|
|
|
|
|
}//namespace glm
|
|
|
|
|
|
|
|
|
|