isInside method

bool isInside(
  1. Vector3 pt, {
  2. double buff = SMALL_BUFFER,
})

Implementation

bool isInside(Vector3 pt, {double buff = SMALL_BUFFER}) {
  return pt.x >= getLeft().x - buff &&
      pt.x <= getRight().x + buff &&
      pt.y >= getBottom().y - buff &&
      pt.y <= getTop().y + buff;
}