Optimize label size calculation
This commit is contained in:
@@ -177,3 +177,15 @@ glm::vec<L, float, Q> operator / (const float lhs, const glm::vec<L, T, Q>& rhs)
|
||||
{
|
||||
return lhs / glm::vec<L, float, Q>(rhs);
|
||||
}
|
||||
|
||||
template<glm::length_t L, typename T, glm::qualifier Q, typename = std::enable_if_t<std::is_integral_v<T>>>
|
||||
glm::vec<L, float, Q> operator * (const float lhs, const glm::vec<L, T, Q>& rhs)
|
||||
{
|
||||
return lhs * glm::vec<L, float, Q>(rhs);
|
||||
}
|
||||
|
||||
template<glm::length_t L, typename T, glm::qualifier Q, typename = std::enable_if_t<std::is_integral_v<T>>>
|
||||
glm::vec<L, float, Q> operator * (const glm::vec<L, float, Q>& lhs, const T rhs)
|
||||
{
|
||||
return lhs * static_cast<float>(rhs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user