%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/ampache.varak.net/modules/UberViz/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/ampache.varak.net/modules/UberViz/ATUTil.js

ATUtil = {
	
	getRandVec3D : function(minVal, maxVal) {
		return new THREE.Vector3(ATUtil.getRand(minVal, maxVal), ATUtil.getRand(minVal, maxVal), ATUtil.getRand(minVal, maxVal));
	},
	getRand : function(minVal, maxVal) {
		return minVal + (Math.random() * (maxVal - minVal));
	},
	map : function(value, min1, max1, min2, max2) {
		return ATUtil.lerp(min2, max2, ATUtil.norm(value, min1, max1));
	},
	lerp : function(min, max, amt){
		return min + (max -min) * amt;
	},
	norm : function(value , min, max){
		return (value - min) / (max - min);
	}
}

Zerion Mini Shell 1.0