Lines Matching refs:_this

10 	var _this = this;
111 ( pageX - _this.screen.left ) / _this.screen.width,
112 ( pageY - _this.screen.top ) / _this.screen.height
128 ( ( pageX - _this.screen.width * 0.5 - _this.screen.left ) / ( _this.screen.width * 0.5 ) ),
129 …( ( _this.screen.height + 2 * ( _this.screen.top - pageY ) ) / _this.screen.width ) // screen.widt…
155 _eye.copy( _this.object.position ).sub( _this.target );
158 objectUpDirection.copy( _this.object.up ).normalize();
168 angle *= _this.rotateSpeed;
172 _this.object.up.applyQuaternion( quaternion );
177 } else if ( ! _this.staticMoving && _lastAngle ) {
179 _lastAngle *= Math.sqrt( 1.0 - _this.dynamicDampingFactor );
180 _eye.copy( _this.object.position ).sub( _this.target );
183 _this.object.up.applyQuaternion( quaternion );
206 factor = 1.0 + ( _zoomEnd.y - _zoomStart.y ) * _this.zoomSpeed;
214 if ( _this.staticMoving ) {
240 mouseChange.multiplyScalar( _eye.length() * _this.panSpeed );
242 pan.copy( _eye ).cross( _this.object.up ).setLength( mouseChange.x );
243 pan.add( objectUp.copy( _this.object.up ).setLength( mouseChange.y ) );
245 _this.object.position.add( pan );
246 _this.target.add( pan );
248 if ( _this.staticMoving ) {
254 …_panStart.add( mouseChange.subVectors( _panEnd, _panStart ).multiplyScalar( _this.dynamicDampingFa…
266 if ( ! _this.noZoom || ! _this.noPan ) {
268 if ( _eye.lengthSq() > _this.maxDistance * _this.maxDistance ) {
270 _this.object.position.addVectors( _this.target, _eye.setLength( _this.maxDistance ) );
275 if ( _eye.lengthSq() < _this.minDistance * _this.minDistance ) {
277 _this.object.position.addVectors( _this.target, _eye.setLength( _this.minDistance ) );
288 _eye.subVectors( _this.object.position, _this.target );
290 if ( ! _this.noRotate ) {
292 _this.rotateCamera();
296 if ( ! _this.noZoom ) {
298 _this.zoomCamera();
302 if ( ! _this.noPan ) {
304 _this.panCamera();
308 _this.object.position.addVectors( _this.target, _eye );
310 _this.checkDistances();
312 _this.object.lookAt( _this.target );
314 if ( lastPosition.distanceToSquared( _this.object.position ) > EPS ) {
316 _this.dispatchEvent( changeEvent );
318 lastPosition.copy( _this.object.position );
329 _this.target.copy( _this.target0 );
330 _this.object.position.copy( _this.position0 );
331 _this.object.up.copy( _this.up0 );
333 _eye.subVectors( _this.object.position, _this.target );
335 _this.object.lookAt( _this.target );
337 _this.dispatchEvent( changeEvent );
339 lastPosition.copy( _this.object.position );
347 if ( _this.enabled === false ) return;
357 } else if ( event.keyCode === _this.keys[ STATE.ROTATE ] && ! _this.noRotate ) {
361 } else if ( event.keyCode === _this.keys[ STATE.ZOOM ] && ! _this.noZoom ) {
365 } else if ( event.keyCode === _this.keys[ STATE.PAN ] && ! _this.noPan ) {
375 if ( _this.enabled === false ) return;
385 if ( _this.enabled === false ) return;
396 if ( _state === STATE.ROTATE && ! _this.noRotate ) {
401 } else if ( _state === STATE.ZOOM && ! _this.noZoom ) {
406 } else if ( _state === STATE.PAN && ! _this.noPan ) {
416 _this.dispatchEvent( startEvent );
422 if ( _this.enabled === false ) return;
427 if ( _state === STATE.ROTATE && ! _this.noRotate ) {
432 } else if ( _state === STATE.ZOOM && ! _this.noZoom ) {
436 } else if ( _state === STATE.PAN && ! _this.noPan ) {
446 if ( _this.enabled === false ) return;
455 _this.dispatchEvent( endEvent );
461 if ( _this.enabled === false ) return;
463 if ( _this.noZoom === true ) return;
487 _this.dispatchEvent( startEvent );
488 _this.dispatchEvent( endEvent );
494 if ( _this.enabled === false ) return;
520 _this.dispatchEvent( startEvent );
526 if ( _this.enabled === false ) return;
554 if ( _this.enabled === false ) return;
570 _this.dispatchEvent( endEvent );
576 if ( _this.enabled === false ) return;