comment
diff --git a/src/geometries/Geometries.java b/src/geometries/Geometries.java
index 0e7444c..e84fde0 100644
--- a/src/geometries/Geometries.java
+++ b/src/geometries/Geometries.java
@@ -48,8 +48,8 @@
public List<Point3D> findIntersections(Ray ray) {
List<Point3D> result = null;
- // A loop that adds to the list all the bodies that have
- // intersections with the ray
+ //A loop that adds to the list all the intersection points that the ray has with
+ //all the geometric bodies
for (Intersectable item : _intersectableList) {
List<Point3D> elementList = item.findIntersections(ray);
if (elementList != null) {
diff --git a/src/primitives/Ray.java b/src/primitives/Ray.java
index ec012b3..da37cf0 100644
--- a/src/primitives/Ray.java
+++ b/src/primitives/Ray.java
@@ -56,6 +56,12 @@
return p0 + ", " + dir;
}
+ /**
+ * Calculate a point on the ray
+ *
+ * @param t for the point
+ * @return the point
+ */
public Point3D getPoint(double t){
return p0.add(dir.scale(t));
}