|
@@ -518,8 +518,8 @@ module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
if (bias) {
|
|
if (bias) {
|
|
- minimum.scaleInPlace(1-bias.x).addInPlaceFromFloats(-bias.y, -bias.y, -bias.y)
|
|
|
|
- maximum.scaleInPlace(1+bias.x).addInPlaceFromFloats(bias.y, bias.y, bias.y)
|
|
|
|
|
|
+ minimum.scaleInPlace(1 - bias.x).addInPlaceFromFloats(-bias.y, -bias.y, -bias.y);
|
|
|
|
+ maximum.scaleInPlace(1 + bias.x).addInPlaceFromFloats(bias.y, bias.y, bias.y);
|
|
}
|
|
}
|
|
|
|
|
|
return {
|
|
return {
|
|
@@ -554,8 +554,8 @@ module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
if (bias) {
|
|
if (bias) {
|
|
- minimum.scaleInPlace(1-bias.x).addInPlaceFromFloats(-bias.y, -bias.y, -bias.y)
|
|
|
|
- maximum.scaleInPlace(1+bias.x).addInPlaceFromFloats(bias.y, bias.y, bias.y)
|
|
|
|
|
|
+ minimum.scaleInPlace(1 - bias.x).addInPlaceFromFloats(-bias.y, -bias.y, -bias.y);
|
|
|
|
+ maximum.scaleInPlace(1 + bias.x).addInPlaceFromFloats(bias.y, bias.y, bias.y);
|
|
}
|
|
}
|
|
|
|
|
|
return {
|
|
return {
|
|
@@ -585,10 +585,11 @@ module BABYLON {
|
|
* @param kparams the arguments to pass to each call to the constructor
|
|
* @param kparams the arguments to pass to each call to the constructor
|
|
* @returns a new array filled with new objects
|
|
* @returns a new array filled with new objects
|
|
*/
|
|
*/
|
|
- public static BuildArray = <T, P extends any[]>(size: number, konstructor: new (...p: P)=>T, ...kparams: P): Array<T> => {
|
|
|
|
|
|
+ public static BuildArray = <T, P extends any[]>(size: number, konstructor: new (...p: P) => T, ...kparams: P): Array<T> => {
|
|
const a: T[] = [];
|
|
const a: T[] = [];
|
|
- for (let i = 0; i < size; ++i)
|
|
|
|
- a.push(new konstructor(...kparams));
|
|
|
|
|
|
+ for (let i = 0; i < size; ++i) {
|
|
|
|
+ a.push(new konstructor(...kparams));
|
|
|
|
+ }
|
|
return a;
|
|
return a;
|
|
}
|
|
}
|
|
|
|
|