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

Fixed Divide by Zero Error in plane.py as a result of Parallel Vectors A and B #33

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

Conversation

wct432
Copy link

@wct432 wct432 commented Sep 9, 2022

Added a check for zero vector C to prevent a divide by zero error in the next step after the cross product of vectors A and B are computed. If vectors A and B are parallel their cross product results in a zero vector C, causing the divide by zero error.

Added check for zero vector C after cross product of vectors A and B to prevent divide by zero error.
Fixed typo in comment.
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.

1 participant