Skip to content

Commit

Permalink
Merge pull request #58 from lindale-dev/fix-sphere-intersects-lineseg…
Browse files Browse the repository at this point in the history
…ment

Fix Sphere/LineSegment intersection not returning the intersection count
  • Loading branch information
juj authored Apr 3, 2020
2 parents 9f2dca0 + 8cddc15 commit f5bcde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geometry/Sphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ int Sphere::Intersects(const LineSegment &l, vec *intersectionPoint, vec *inters
if (d2)
*d2 = t2 / lineLength;

return true;
return numIntersections;
}

bool Sphere::Intersects(const Plane &plane) const
Expand Down

0 comments on commit f5bcde8

Please sign in to comment.