code: function verticesProjection(vertices, axis) {
            var _vertices$map = vertices.map(function (v) {
              return axis.dot(new _spriteMath.Vector(v));
            }),
                _vertices$map2 = (0, _slicedToArray2.default)(_vertices$map, 4),
                p1 = _vertices$map2[0],
                p2 = _vertices$map2[1],
                p3 = _vertices$map2[2],
                p4 = _vertices$map2[3];
  
            return [Math.min(p1, p2, p3, p4), Math.max(p1, p2, p3, p4)];
          }
docs: The projection of the axis of a vertex in a certain direction