Browse Source

add Euler.setFromVector helper.

Ben Houston 10 years ago
parent
commit
7af872306a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/math/Euler.js

+ 6 - 0
src/math/Euler.js

@@ -242,6 +242,12 @@ THREE.Euler.prototype = {
 
 	}(),
 
+	setFromVector: function ( v, order ) {
+
+		return this.set( v.x, v.y, v.z, order || this._order );
+
+	},
+
 	reorder: function () {
 
 		// WARNING: this discards revolution information -bhouston