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

Fixing issue #35 float numbers #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spneshaei
Copy link

Fixing issue #35 Float number
Float numbers can be used as x-coordinates similar to how they could be used as y-coordinates

float targetY;
int linenumber;
int velocity = MyUtils.dip2px(getContext(), 18);

Dot(int x, float y, int targetX, float targetY, float data, int linenumber) {
Dot(double x, float y, double targetX, float targetY, float data, int linenumber) {
this.x = x;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, did you try out your changes? I was about to add them to my fork of the library, as unfortunately this repository seems unmaintained, but your commit doesn't compile for me. For example, this.x is an int while the local x is a double, causing the assignment to fail. Other type-casting errors are also showing.

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