mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
Fixes Vector3 conversion from ImVec2
Corrects the static function signature for creating a Vector3 from an ImVec2. It was mistakenly returning a Vector3 instead of Vector3. patch
This commit is contained in:
@@ -226,7 +226,7 @@ namespace omath
|
|||||||
return {static_cast<float>(this->x), static_cast<float>(this->y)};
|
return {static_cast<float>(this->x), static_cast<float>(this->y)};
|
||||||
}
|
}
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
static Vector3<float> from_im_vec2(const ImVec2& other) noexcept
|
static Vector2 from_im_vec2(const ImVec2& other) noexcept
|
||||||
{
|
{
|
||||||
return {static_cast<Type>(other.x), static_cast<Type>(other.y)};
|
return {static_cast<Type>(other.x), static_cast<Type>(other.y)};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user