applyOverPoints method

void applyOverPoints({
  1. required Vector3 func(
    1. Vector3
    ),
  2. Vector3? aboutPoint,
  3. Vector3 aboutEdge = ORIGIN,
})

Implementation

void applyOverPoints(
    {required Vector3 Function(Vector3) func,
    Vector3? aboutPoint,
    Vector3 aboutEdge = ORIGIN}) {
  aboutPoint ??= getCriticalPoint(aboutEdge);

  for (var mob in getFamilyWithPoints()) {
    mob.points = [
      for (var pt in mob.points) func(pt - aboutPoint) + aboutPoint
    ];
  }
}