Lines Matching refs:offset
89 var offset = new THREE.Vector3();
177 var offset = position.clone().sub( scope.target );
178 var targetDistance = offset.length();
230 offset.copy( position ).sub( this.target );
234 var theta = Math.atan2( offset.x, offset.z );
238 var phi = Math.atan2( Math.sqrt( offset.x * offset.x + offset.z * offset.z ), offset.y );
255 var radius = offset.length() * scale;
263 offset.x = radius * Math.sin( phi ) * Math.sin( theta );
264 offset.y = radius * Math.cos( phi );
265 offset.z = radius * Math.sin( phi ) * Math.cos( theta );
267 position.copy( this.target ).add( offset );