|
@@ -304,7 +304,7 @@ Box2.prototype.equals = function(box)
|
|
|
*/
|
|
|
Box2.prototype.toArray = function()
|
|
|
{
|
|
|
- return [this.box.min.x, this.box.min.y, this.box.max.x, this.box.max.y];
|
|
|
+ return [this.min.x, this.min.y, this.max.x, this.max.y];
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -314,8 +314,8 @@ Box2.prototype.toArray = function()
|
|
|
*/
|
|
|
Box2.prototype.fromArray = function(array)
|
|
|
{
|
|
|
- this.box.min.set(array[0], array[1]);
|
|
|
- this.box.max.set(array[2], array[3]);
|
|
|
+ this.min.set(array[0], array[1]);
|
|
|
+ this.max.set(array[2], array[3]);
|
|
|
};
|
|
|
|
|
|
export {Box2};
|
|
@@ -335,7 +335,7 @@ export {Box2};
|
|
|
<br class="clear">
|
|
|
|
|
|
<footer>
|
|
|
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.4</a> on Mon May 18 2020 18:40:48 GMT+0100 (Western European Summer Time)
|
|
|
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.4</a> on Mon May 18 2020 18:45:41 GMT+0100 (Western European Summer Time)
|
|
|
</footer>
|
|
|
|
|
|
<script> prettyPrint(); </script>
|