|
@@ -79,7 +79,7 @@ Vector3.prototype = {
|
|
|
default: throw new Error( 'index is out of range: ' + index );
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return this;
|
|
|
|
|
|
},
|
|
@@ -685,6 +685,16 @@ Vector3.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
+ setFromCylindrical: function( c ) {
|
|
|
+
|
|
|
+ this.x = c.radius * Math.sin( c.theta );
|
|
|
+ this.y = c.y;
|
|
|
+ this.z = c.radius * Math.cos( c.theta );
|
|
|
+
|
|
|
+ return this;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
setFromMatrixPosition: function ( m ) {
|
|
|
|
|
|
return this.setFromMatrixColumn( m, 3 );
|