Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix determination of Plane scaler #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

franzlst
Copy link
Contributor

The equation to determine the scalar for a plane from the normal and a point missed a minus, see for example https://en.wikipedia.org/wiki/Plane_%28geometry%29#Point-normal_form_and_general_form_of_the_equation_of_a_plane

The equation to determine the scalar for a plane from the normal and a point missed a minus, see for example https://en.wikipedia.org/wiki/Plane_%28geometry%29#Point-normal_form_and_general_form_of_the_equation_of_a_plane
@codecov-io
Copy link

codecov-io commented Sep 23, 2016

Current coverage is 54.67% (diff: 0.00%)

Merging #13 into master will not change coverage

@@             master        #13   diff @@
==========================================
  Files             1          1          
  Lines          1635       1635          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits            894        894          
  Misses          741        741          
  Partials          0          0          

Powered by Codecov. Last update 0a2760a...150e930

@franzlst
Copy link
Contributor Author

I'm nor sure whether the k in the Plane refers to the scalar part of the point-normal form of a plane or whether it's multiplied by -1 intentionally.

If it refers to the scalar part, this has more consequences to the code. At least all references to k in the _get_point method of Plane must also be negated.

Follow up change required by negating scalar `k` of plane
Negated `k` of `Plane` requires negated `k` in `_intersect_line3_sphere`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants