You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered difficulties using fast sqrt functions (GLM_GTX_fast_square_root extension).
The problem is ambiguity between the functions, that only differ in returning type, which (the returning type) is genType or genType::value_type.
more than one instance of overloaded function "glm::fastDistance" matches the argument list:
function template "genType::value_type glm::fastDistance(const genType &x, const genType &y)"
function template "genType glm::fastDistance(const genType &x, const genType &y)"
argument types are: (glm::mediump_f32vec2, glm::mediump_f32vec2)
I believe it is a GLM bug. Is there any known workaround solution for this?
The text was updated successfully, but these errors were encountered:
With GLM 0.9.5, if you use glm::lowp_float32 dist = glm::distance(glm::lowp_f32vec2(destination.x, destination.z), glm::lowp_f32vec2(loc.x, loc.z)); you will access the same fast path.
glm::fastDistance should probably be fixed as well.
Hello.
I encountered difficulties using fast sqrt functions (GLM_GTX_fast_square_root extension).
The problem is ambiguity between the functions, that only differ in returning type, which (the returning type) is genType or genType::value_type.
The example:
glm::mediump_float32 dist = glm::fastDistance(glm::mediump_f32vec2(destination.x, destination.z), glm::mediump_f32vec2(loc.x, loc.z));
Above line generates error:
more than one instance of overloaded function "glm::fastDistance" matches the argument list:
function template "genType::value_type glm::fastDistance(const genType &x, const genType &y)"
function template "genType glm::fastDistance(const genType &x, const genType &y)"
argument types are: (glm::mediump_f32vec2, glm::mediump_f32vec2)
I believe it is a GLM bug. Is there any known workaround solution for this?
The text was updated successfully, but these errors were encountered: