Godzil 4 years ago
parent
commit
083a5b600f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/shapes/cylinder.cpp

+ 1 - 1
source/shapes/cylinder.cpp

@@ -25,7 +25,7 @@ bool Cylinder::checkCap(Ray r, double t)
 
 void Cylinder::intersectCaps(Ray r, Intersect &xs)
 {
-    /* Caps only mattter is the cylinder is closed, and might possibly be
+    /* Caps only matter if the cylinder is closed, and might possibly be
      * intersected by the ray
      */
     if ((this->isClosed) && (fabs(r.direction.y) > getEpsilon()))