Home | History | Annotate | Download | only in benchmarks

Lines Matching full:math

163         var d = Math.abs(this.red - color.red) + Math.abs(this.green - color.green) + Math.abs(this.blue - color.blue);
177 var r = Math.floor(this.red*255);
178 var g = Math.floor(this.green*255);
179 var b = Math.floor(this.blue*255);
184 var r = Math.floor(this.red*255);
185 var g = Math.floor(this.green*255);
186 var b = Math.floor(this.blue*255);
211 return Math.pow((intensity - distance) / strength, 0.2);
247 return Math.sqrt((this.x * this.x) + (this.y * this.y) + (this.z * this.z));
469 info.distance = (-B) - Math.sqrt(D);
744 var shininess = Math.pow(10, info.shape.material.gloss + 1);
807 var dB = (0.5 * Math.pow(shadowInfo.shape.material.transparency, 0.5));
829 var glossWeight = Math.pow(Math.max(info.normal.dot(H), 0), shininess);