geometrize-haxe icon indicating copy to clipboard operation
geometrize-haxe copied to clipboard

Do not clamp triangle mutation ?

Open Cerdic opened this issue 5 years ago • 0 comments

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

Cerdic avatar Jul 15 '19 14:07 Cerdic