alignSubmobjects method

void alignSubmobjects(
  1. Mobject mob2
)

Implementation

void alignSubmobjects(Mobject mob2) {
  var mob1 = this;

  var n1 = mob1.length;
  var n2 = mob2.length;

  mob1.addNMoreSubmobjects(max(0, n2 - n1));
  mob2.addNMoreSubmobjects(max(0, n1 - n2));
}