You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering whether normalize should return a reference to this rather than the old length so that it makes it possible to use it in function chaining. Or alternatively create a normal() that is a wrapper around normalize and just returns this.
See the example below:
constmyVec=vec.clone().sub(vec2).normalize().mul(0.5)// and so on
Really cool project by the way! My only complaint is the minimal documentation which makes it harder as I don't have an understanding of where everything is in the library yet.
The text was updated successfully, but these errors were encountered:
I was wondering whether
normalize
should return a reference tothis
rather than the old length so that it makes it possible to use it in function chaining. Or alternatively create anormal()
that is a wrapper aroundnormalize
and just returnsthis
.See the example below:
Really cool project by the way! My only complaint is the minimal documentation which makes it harder as I don't have an understanding of where everything is in the library yet.
The text was updated successfully, but these errors were encountered: