Remove unused parameter

This commit is contained in:
Blyron 2023-02-23 13:34:29 +01:00 committed by bernat
parent b018dfb8f4
commit eb0fb21dbf
1 changed files with 2 additions and 8 deletions

View File

@ -226,16 +226,10 @@ struct vec3f
return (double)sqrt(x * x + y * y + z * z); return (double)sqrt(x * x + y * y + z * z);
} }
inline vec3f normalize(double desired_length = 1) inline vec3f normalize()
{ {
double square = sqrt(x * x + y * y + z * z); double square = sqrt(x * x + y * y + z * z);
/*
if (square <= 0.00001f )
{
x=1;y=0;z=0;
return *this;
}*/
// double len = desired_length / square;
x /= square; x /= square;
y /= square; y /= square;
z /= square; z /= square;