Hi, the following function:
static Vec2 norm(Vec2 const & v)
{
if(length(v) < 1e-30)
return {0.0f, 0.0f};
}
doesn't return a vector when length(v) >= 1e-30. I suggest adding the following return statement:
static Vec2 norm(Vec2 const & v)
{
if(length(v) < 1e-30)
return {0.0f, 0.0f};
Hi, the following function:
static Vec2 norm(Vec2 const & v)
{
if(length(v) < 1e-30)
return {0.0f, 0.0f};
}
doesn't return a vector when length(v) >= 1e-30. I suggest adding the following return statement:
static Vec2 norm(Vec2 const & v)
{
if(length(v) < 1e-30)
return {0.0f, 0.0f};