A bit of cleanup

This commit is contained in:
Godzil
2020-03-10 09:15:38 +00:00
parent 4e241a1871
commit add3d7c861
2 changed files with 0 additions and 21 deletions

View File

@@ -45,24 +45,6 @@ Tuple Tuple::reflect(const Tuple &normal)
return *this - normal * 2 * this->dot(normal);
}
void Tuple::fixPoint()
{
if (isnan(this->x) || isnan(this->y) || isnan(this->z))
{
/* w is probably broken, so fix it */
this->w = 1;
}
}
void Tuple::fixVector()
{
if (isnan(this->x) || isnan(this->y) || isnan(this->z))
{
/* w is probably broken, so fix it */
this->w = 0;
}
}
bool Tuple::isRepresentable()
{
return !(isnan(this->x) || isnan(this->y) || isnan(this->z) ||