containsLocalPoint method

  1. @override
bool containsLocalPoint(
  1. Vector2 p
)
inherited

Whether a point is within the boundaries of the visible part of the game.

Implementation

@override
bool containsLocalPoint(Vector2 p) {
  return p.x >= 0 && p.y >= 0 && p.x < size.x && p.y < size.y;
}