method equals

bool equals(box box);

Argumente

Zurückgegebener Wert

This method will check to see if this box is equal to another box passed in by the caller.
function DoTestsAgainstBox(theBox)
{
    var bx = scene.getBoxById("noTestBox");
    if (bx && theBox && !theBox.equals(bx))
    {
        // testing code here.
    }
}