|
@@ -483,8 +483,8 @@ var BABYLON;
|
|
return new Vector2(x, y);
|
|
return new Vector2(x, y);
|
|
};
|
|
};
|
|
Vector2.Transform = function (vector, transformation) {
|
|
Vector2.Transform = function (vector, transformation) {
|
|
- var x = (vector.x * transformation.m[0]) + (vector.y * transformation.m[4]);
|
|
|
|
- var y = (vector.x * transformation.m[1]) + (vector.y * transformation.m[5]);
|
|
|
|
|
|
+ var x = (vector.x * transformation.m[0]) + (vector.y * transformation.m[4]) + transformation.m[12];
|
|
|
|
+ var y = (vector.x * transformation.m[1]) + (vector.y * transformation.m[5]) + transformation.m[13];
|
|
return new Vector2(x, y);
|
|
return new Vector2(x, y);
|
|
};
|
|
};
|
|
Vector2.Distance = function (value1, value2) {
|
|
Vector2.Distance = function (value1, value2) {
|