TodePond / Habitat

my javascript helpers
MIT License
45 stars 5 forks source link

`scale` doesn't work as expected with vectors #111

Open TodePond opened 1 year ago

TodePond commented 1 year ago

It should scale the length, not each axis.

and maybe we should have some distance function or something. I know it's just hypot but maybe for clarity's sake