isInFrame method
Implementation
bool isInFrame(Mobject mob) {
var checks = [
mob.getRight().x < frameCenter.x - frameWidth,
mob.getBottom().y > frameCenter.y + frameHeight,
mob.getLeft().x > frameCenter.x + frameWidth,
mob.getTop().y < frameCenter.y - frameHeight,
];
return !checks.reduce((a, b) => a || b);
}