mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 15:23:53 +00:00
The returned value of a quaternion scalar division and multiplication must be a quaternion
This commit is contained in:
parent
2d4c4b4dd3
commit
506c6d98ca
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ namespace detail
|
|||
{
|
||||
static qua<float, Q> call(qua<float, Q> const& q, float s)
|
||||
{
|
||||
vec<4, float, Q> Result;
|
||||
qua<float, Q> Result;
|
||||
Result.data = _mm_mul_ps(q.data, _mm_set_ps1(s));
|
||||
return Result;
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ namespace detail
|
|||
{
|
||||
static qua<float, Q> call(qua<float, Q> const& q, float s)
|
||||
{
|
||||
vec<4, float, Q> Result;
|
||||
qua<float, Q> Result;
|
||||
Result.data = _mm_div_ps(q.data, _mm_set_ps1(s));
|
||||
return Result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue