[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Relax condition regarding dot product
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror authored Nov 17, 2022
1 parent 00b1a26 commit 84542de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ namespace acme
const
{
vec3 p = (point_in - this->m_origin).normalized();
return IsApprox(p.cross(this->m_direction).norm(), real(0.0), tolerance) and p.dot(this->m_direction) > 0;
return IsApprox(p.cross(this->m_direction).norm(), real(0.0), tolerance) and p.dot(this->m_direction) >= 0;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit 84542de

Please sign in to comment.