<commit_before>var GetBounds = {

    getBounds: function (output)
    {
        if (output === undefined) { output = { x: 0, y: 0, width: 0, height: 0 }; }

        var x = this.x;
        var y = this.y;

        var w = this.displayWidth;
        var h = this.displayHeight;

        var r = this.rotation;

        var wct = w * Math.cos(r);
        var hct = h * Math.cos(r);

        var wst = w * Math.sin(r);
        var hst = h * Math.sin(r);
<commit_msg>GameObject.getBounds now factors in origin.<commit_after>var Rectangle = require('../../geom/rectangle/Rectangle');

var GetBounds = {

    getBounds: function (output)
    {
        if (output === undefined) { output = new Rectangle(); }

        var x = this.x - this.displayOriginX;
        var y = this.y - this.displayOriginY;

        var w = this.displayWidth;
        var h = this.displayHeight;

        var r = this.rotation;

        var wct = w * Math.cos(r);
        var hct = h * Math.cos(r);

        var wst = w * Math.sin(r);
        var hst = h * Math.sin(r);

{'fraction_non_alphanumeric': 0.13915547024952016, 'fraction_numerical': 0.003838771593090211, 'mean_word_length': 1.849726775956284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2000640', 'n_tokens_mistral': 358, 'n_tokens_neox': 341, 'n_words': 99}