nextToMobject method
void
nextToMobject(})
Implementation
void nextToMobject(Mobject mobject,
{Vector3 direction = RIGHT,
double buffer = DEFAULT_MOBJECT_TO_MOBJECT_BUFFER,
Vector3 alignedEdge = ORIGIN,
// TODO: add submobjectToAlign
// Mobject? submobjectToAlign,
// int? indexOfSubmobjectToAlign,
Vector3 coordinateMask = const Vector3(1, 1, 1)}) =>
nextToPoint(
mobject.getCriticalPoint(alignedEdge + direction),
direction: direction,
buffer: buffer,
alignedEdge: alignedEdge,
);