Added multiplyScalar family of functions

This commit is contained in:
Bernie Sumption
2016-03-08 18:52:11 +00:00
parent 9f0f926a12
commit fb24b831e1
+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.