-
Notifications
You must be signed in to change notification settings - Fork 108
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
Scalar multiply/divide #19
Comments
👍 |
multiplyScalar and divideScalar are there in 1.1.0 - not yet mentioned in the documentation |
4 years later... Any idea when it might make it to the documentation? Anything a karmatic netizen like myself can help out with to get the documentation updated? |
As @mfandl mentioned, the methods were added PR #16 prior to release Victor.prototype.addScalar(scalar)
Victor.prototype.addScalarX(scalar)
Victor.prototype.addScalarY(scalar)
Victor.prototype.divideScalar(scalar)
Victor.prototype.divideScalarX(scalar)
Victor.prototype.divideScalarY(scalar)
Victor.prototype.multiplyScalar(scalar)
Victor.prototype.multiplyScalarX(scalar)
Victor.prototype.multiplyScalarY(scalar)
Victor.prototype.subtractScalar(scalar)
Victor.prototype.subtractScalarX(scalar)
Victor.prototype.subtractScalarY(scalar) The website's docs haven't been updated since 30 October 2014 ( This predates critical changes:
The docs should have been rebuilt after the |
I know you can just v.multiply(new Victor(n, n)) where n is the scalar you want, but this is kind of a hack, and a dedicated scalar multiplication method would be wonderful.
The text was updated successfully, but these errors were encountered: