From 1a96d32bd9123a80a96b6df6204bf77be58f9194 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Mon, 3 Jan 2011 19:42:47 +0000 Subject: [PATCH] Added divideSelf to Vector3. --- src/core/Vector3.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/Vector3.js b/src/core/Vector3.js index e3a7fc0a..68461aab 100644 --- a/src/core/Vector3.js +++ b/src/core/Vector3.js @@ -136,6 +136,16 @@ THREE.Vector3.prototype = { }, + divideSelf: function ( v ) { + + this.x /= v.x; + this.y /= v.y; + this.z /= v.z; + + return this; + + }, + divideScalar: function ( s ) { this.x /= s;