Merge pull request #8448 from BernieSumption/patch-1

Added multiplyScalar family of functions
This commit is contained in:
Masahiro Wakame
2016-03-11 00:46:01 +09:00
+21
View File
@@ -125,6 +125,27 @@ declare class Victor
* @param vector
*/
multiply(vector:Victor):Victor;
/**
* Multiplies both vector axis by the given scalar value
*
* @param victor
*/
multiplyScalar(scalar: number): Victor;
/**
* Multiplies the X axis by the given scalar
*
* @param victor
*/
multiplyScalarX(scalar: number): Victor;
/**
* Multiplies the Y axis by the given scalar
*
* @param vector
*/
multiplyScalarY(scalar: number): Victor;
/**
* Divides the X component by the X component of another vector.