From fb24b831e19f94068bdad8691feb8702ad3fd68c Mon Sep 17 00:00:00 2001 From: Bernie Sumption Date: Tue, 8 Mar 2016 18:52:11 +0000 Subject: [PATCH] Added multiplyScalar family of functions --- victor/victor.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/victor/victor.d.ts b/victor/victor.d.ts index 7812abcee..04cfc49be 100644 --- a/victor/victor.d.ts +++ b/victor/victor.d.ts @@ -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.