PointBatchExt extension
Extension for batch operations on a list of Pointer<Point>
Methods
-
forEach(
void fn(Point point)) → void -
Available on List<
Applies a function to each Point in the list.Pointer< , provided by the PointBatchExt extensionPoint> > -
printAll(
) → void -
Available on List<
Prints all points in the list.Pointer< , provided by the PointBatchExt extensionPoint> > -
reset(
) → void -
Available on List<
Resets all points in the list to the origin (0, 0).Pointer< , provided by the PointBatchExt extensionPoint> > -
scale(
double factor) → void -
Available on List<
Scales all points in the list by a factor.Pointer< , provided by the PointBatchExt extensionPoint> > -
setAll(
int x, int y) → void -
Available on List<
Sets all points in the list to specific values.Pointer< , provided by the PointBatchExt extensionPoint> > -
translate(
int dx, int dy) → void -
Available on List<
Translates all points in the list by dx and dy.Pointer< , provided by the PointBatchExt extensionPoint> >