Skip to content
Snippets Groups Projects
Select Git revision
  • 1aeb5056d6943331ee2d11807bcc0a6480ad1ca0
  • master default protected
  • LUFA-170418
  • LUFA-151115
  • LUFA-140928
  • LUFA-140302
  • LUFA-130901
  • LUFA-130901-BETA
  • LUFA-130303
  • LUFA-120730
  • LUFA-120730-BETA
  • LUFA-120219
  • LUFA-120219-BETA
  • LUFA-111009
  • LUFA-111009-BETA
  • LUFA-110528
  • LUFA-110528-BETA
17 results

Descriptors.h

Blame
  • three.js 1,008.35 KiB
    (function (global, factory) {
    	typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
    	typeof define === 'function' && define.amd ? define(['exports'], factory) :
    	(factory((global.THREE = global.THREE || {})));
    }(this, (function (exports) { 'use strict';
    
    	// Polyfills
    
    	if ( Number.EPSILON === undefined ) {
    
    		Number.EPSILON = Math.pow( 2, - 52 );
    
    	}
    
    	if ( Number.isInteger === undefined ) {
    
    		// Missing in IE
    		// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
    
    		Number.isInteger = function ( value ) {
    
    			return typeof value === 'number' && isFinite( value ) && Math.floor( value ) === value;
    
    		};
    
    	}
    
    	//
    
    	if ( Math.sign === undefined ) {
    
    		// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign
    
    		Math.sign = function ( x ) {
    
    			return ( x < 0 ) ? - 1 : ( x > 0 ) ? 1 : + x;
    
    		};
    
    	}
    
    	if ( Function.prototype.name === undefined ) {
    
    		// Missing in IE
    		// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name
    
    		Object.defineProperty( Function.prototype, 'name', {
    
    			get: function () {
    
    				return this.toString().match( /^\s*function\s*([^\(\s]*)/ )[ 1 ];
    
    			}
    
    		} );
    
    	}
    
    	if ( Object.assign === undefined ) {
    
    		// Missing in IE
    		// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
    
    		( function () {
    
    			Object.assign = function ( target ) {
    
    				'use strict';
    
    				if ( target === undefined || target === null ) {