containsVector2 method Null safety
- Vector2 other
Return if this contains other
.
Implementation
bool containsVector2(Vector2 other) =>
(_min.x < other.x) &&
(_min.y < other.y) &&
(_max.x > other.x) &&
(_max.y > other.y);
Return if this contains other
.
bool containsVector2(Vector2 other) =>
(_min.x < other.x) &&
(_min.y < other.y) &&
(_max.x > other.x) &&
(_max.y > other.y);