1 /**
  2  * @author alteredq / http://alteredqualia.com/
  3  */
  4 
  5 /**@namespace*/
  6 THREE.Math = {
  7 
  8 	// Clamp value to range <a, b>
  9 
 10 	clamp: function ( x, a, b ) {
 11 
 12 		return ( x < a ) ? a : ( ( x > b ) ? b : x );
 13 
 14 	},
 15 
 16 	// Clamp value to range <a, inf)
 17 
 18 	clampBottom: function ( x, a ) {
 19 
 20 		return x < a ? a : x;
 21 
 22 	},
 23 
 24 	// Linear mapping from range <a1, a2> to range <b1, b2>
 25 
 26 	mapLinear: function ( x, a1, a2, b1, b2 ) {
 27 
 28 		return b1 + ( x - a1 ) * ( b2 - b1 ) / ( a2 - a1 );
 29 
 30 	},
 31 
 32 	// Random float from <0, 1> with 16 bits of randomness
 33 	// (standard Math.random() creates repetitive patterns when applied over larger space)
 34 
 35 	random16: function () {
 36 
 37 		return ( 65280 * Math.random() + 255 * Math.random() ) / 65535;
 38 
 39 	},
 40 
 41 	// Random integer from <low, high> interval
 42 
 43 	randInt: function ( low, high ) {
 44 
 45 		return low + Math.floor( Math.random() * ( high - low + 1 ) );
 46 
 47 	},
 48 
 49 	// Random float from <low, high> interval
 50 
 51 	randFloat: function ( low, high ) {
 52 
 53 		return low + Math.random() * ( high - low );
 54 
 55 	},
 56 
 57 	// Random float from <-range/2, range/2> interval
 58 
 59 	randFloatSpread: function ( range ) {
 60 
 61 		return range * ( 0.5 - Math.random() );
 62 
 63 	},
 64 
 65 	sign: function ( x ) {
 66 
 67 		return ( x < 0 ) ? -1 : ( ( x > 0 ) ? 1 : 0 );
 68 
 69 	}
 70 
 71 };
 72 

nike free rn new balance hombre baratas cinturones gucci ugg rebajas cinturon gucci ray ban baratas nike cortez peuterey mujer christian louboutin madrid mbt zapatos gafas ray ban baratas mbt ofertas air max blancas mbt barcelona nike air max 90 woolrich barcelona nike mujer botas ugg gafas de sol carrera aratas air max 2016 baratas oakley baratas nike air max 2016

mbt skor nike sverige louboutin skor hollister sverige polo ralph lauren skjorta woolrich jacka dam canada goose jacka woolrich jacka ray ban rea canada goose rea michael kors rea new balance skor ralph lauren skjorta new balance rea uggs sverige lacoste rea christian louboutin skor moncler jacka nike shox barbour jacka uggs rea