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
Bresenham line programs in java & python #4070
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls do the changes asked in your earlier Pull request too.
x++; | ||
sum -= Dy; | ||
if (sum < 0) { | ||
y = y + prirastokDy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the name of this variable - prirastokDy.
@@ -0,0 +1,63 @@ | |||
# Import graphics library | |||
from graphics import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import only relevant functions, not the entire graphics library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work overall
@@ -0,0 +1,128 @@ | |||
// Including Library | |||
#include <bits/stdc++.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add relevant header files instead of <bits/stdc++.h>.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @vaibhavi24 this is not the relevant file!!
You are by mistake reviewing another file!! Please see only the relevant files of Bresenhams
This one is of infix to prefix!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robotjellyzone Could you remove this file from this PR if it is unrelated? Looks like your branches may have combined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @vaibhavi24 please review the above two files of java and python!! With commit message "java file of Bresenham" and "python file of Bresenham". The one you reviewed was not relevant one as that was of c++ infix to prefix!! |
@arnavb please review it!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes done
I have opened a new pull request to remove the unrelated files !! |
This should be closed as #4091 has been merged. |
Fixes issue:#4024
Changes:
*This algo generates a line by using a graphics library . Codes are implemented in java & python with outputs provided for each code.