expandToPoint method
Implementation
void expandToPoint(Vec2D point) {
var x = point.x;
var y = point.y;
if (x < left) {
left = x;
}
if (x > right) {
right = x;
}
if (y < top) {
top = y;
}
if (y > bottom) {
bottom = y;
}
}