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

Shape.stagepos does not consider rotation #43

Open
ChristerNilsson opened this issue May 24, 2018 · 0 comments
Open

Shape.stagepos does not consider rotation #43

ChristerNilsson opened this issue May 24, 2018 · 0 comments

Comments

@ChristerNilsson
Copy link

This is what I'm trying to do:
https://christernilsson.github.io/Lab/2018/037-Shortcut-GPS/index.html?radius1=10&nr=6A&level=6&seed=0.1&speed1=0.025&speed2=0.0033

The big circle C is rotating.
The three smaller circles, C1, C2 and C3, are attached to the big circle.
The three smaller circles are also rotating.
The smaller circles are actually two half circles.

To be able to check if a point is contained in a half circle, I guess the half circle and the point must be unrotated and unmoved back to the origin. The other approach would be to transform all points in state.vectors.

I've been developing in p5, but the lack of an object model and problem with translate, rotate and scale together with mouse coordinates, makes me look for a better alternative. rune.js almost fulfills my wish list.

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