Skip to content

Phaser.rectangle.containsRect is backwards #1095

@beeglebug

Description

@beeglebug

Phaser.Rectangle.prototype.containsRect calls Phaser.Rectangle.containsRect, and passes in this as the first argument.

Phaser.Rectangle.containsRect tests if the first rect (a) is inside the second rect (b).

This means that rect1.containsRect(rect2) is actually testing if rect2 contains rect1, which is counter intuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions