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

formula for top, down, top left, top right, bottom left, bottom right #40

Open
BabuTango opened this issue Mar 4, 2019 · 0 comments
Open

Comments

@BabuTango
Copy link

For Right, Left, Center... you have given the below formula:

    if abs(points[0] - points[2]) / abs(points[1] - points[2]) > 2:
        return "Right";
    elif abs(points[1] - points[2]) / abs(points[0] - points[2]) > 2:
        return "Left";
    return "Center"

Can you please specify for other angles also

@BabuTango BabuTango changed the title formula for top, down, top eft, top right, bottom left, bottom right formula for top, down, top left, top right, bottom left, bottom right Mar 4, 2019
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

No branches or pull requests

1 participant