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

Do not clamp triangle mutation ? #20

Open
Cerdic opened this issue Jul 15, 2019 · 0 comments
Open

Do not clamp triangle mutation ? #20

Cerdic opened this issue Jul 15, 2019 · 0 comments

Comments

@Cerdic
Copy link

Cerdic commented Jul 15, 2019

I saw that triangles are clamped when mutating, to stay in the bounds
https://github.com/Tw1ddle/geometrize-haxe/blob/master/geometrize/shape/Triangle.hx#L38

whereas they are not clamped in the constructor (corners 2 and 3 can be out of the bounds).

As a matter of fact it seems better to not clamp the corners while mutating, allowing to get partly out of the bound triangles, whereas this is now only possible to with initial random triangles

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