Skip to content

Commit

Permalink
Revert changes which were no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
rorystephenson committed Mar 29, 2023
1 parent 44e924a commit 52eb29f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/src/core/bounds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,13 @@ class Bounds<T extends num> {
return max - min;
}

// The area of these bounds
num get area => (max.x - min.x) * (max.y - min.y);

bool contains(CustomPoint<num> point) {
bool contains(CustomPoint<T> point) {
final min = point;
final max = point;
return containsBounds(Bounds(min, max));
}

bool containsBounds(Bounds<num> b) {
bool containsBounds(Bounds<T> b) {
return (b.min.x >= min.x) &&
(b.max.x <= max.x) &&
(b.min.y >= min.y) &&
Expand Down

0 comments on commit 52eb29f

Please sign in to comment.