Fixed *vec1 scalar constructor
This commit is contained in:
parent
3556f4ad85
commit
ca4ed31fb6
@ -180,7 +180,7 @@ namespace detail
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'dot' only accept floating-point inputs");
|
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'dot' only accept floating-point inputs");
|
||||||
return detail::compute_dot<tvec1, T, highp>::call(x, y);
|
return x * y;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, precision P, template <typename, precision> class vecType>
|
template <typename T, precision P, template <typename, precision> class vecType>
|
||||||
|
@ -82,13 +82,12 @@ namespace glm
|
|||||||
GLM_FUNC_DECL tvec1(tvec1<T, P> const & v);
|
GLM_FUNC_DECL tvec1(tvec1<T, P> const & v);
|
||||||
template <precision Q>
|
template <precision Q>
|
||||||
GLM_FUNC_DECL tvec1(tvec1<T, Q> const & v);
|
GLM_FUNC_DECL tvec1(tvec1<T, Q> const & v);
|
||||||
template <typename U>
|
|
||||||
GLM_FUNC_DECL tvec1(U const & s);
|
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Explicit basic constructors
|
// Explicit basic constructors
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit tvec1(ctor);
|
GLM_FUNC_DECL explicit tvec1(ctor);
|
||||||
|
GLM_FUNC_DECL explicit tvec1(T const & s);
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Conversion vector constructors
|
// Conversion vector constructors
|
||||||
|
@ -78,12 +78,6 @@ namespace glm
|
|||||||
x(v.x)
|
x(v.x)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
template <typename U>
|
|
||||||
GLM_FUNC_QUALIFIER tvec1<T, P>::tvec1(U const & s) :
|
|
||||||
x(static_cast<T>(s))
|
|
||||||
{}
|
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Explicit basic constructors
|
// Explicit basic constructors
|
||||||
|
|
||||||
@ -91,6 +85,11 @@ namespace glm
|
|||||||
GLM_FUNC_QUALIFIER tvec1<T, P>::tvec1(ctor)
|
GLM_FUNC_QUALIFIER tvec1<T, P>::tvec1(ctor)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
template <typename T, precision P>
|
||||||
|
GLM_FUNC_QUALIFIER tvec1<T, P>::tvec1(T const & s) :
|
||||||
|
x(s)
|
||||||
|
{}
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Conversion vector constructors
|
// Conversion vector constructors
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user