williamngan/pts

randomPt overwrites input value

williamngan opened this issue · 0 comments

The inputs needs to be cloned before passing onto Vec.subtract: https://github.com/williamngan/pts/blob/master/src/Num.ts#L97