setFromPoints method

Box2 setFromPoints(
  1. List<Vector2> points
)

Implementation

Box2 setFromPoints(List<Vector2> points) {
  makeEmpty();

  for (var i = 0, il = points.length; i < il; i++) {
    expandByPoint(points[i]);
  }

  return this;
}