PointBatchExt extension

Extension for batch operations on a list of Pointer<Point>

on

Methods

forEach(void fn(Point point)) → void

Available on List<Pointer<Point>>, provided by the PointBatchExt extension

Applies a function to each Point in the list.
printAll() → void

Available on List<Pointer<Point>>, provided by the PointBatchExt extension

Prints all points in the list.
reset() → void

Available on List<Pointer<Point>>, provided by the PointBatchExt extension

Resets all points in the list to the origin (0, 0).
scale(double factor) → void

Available on List<Pointer<Point>>, provided by the PointBatchExt extension

Scales all points in the list by a factor.
setAll(int x, int y) → void

Available on List<Pointer<Point>>, provided by the PointBatchExt extension

Sets all points in the list to specific values.
translate(int dx, int dy) → void

Available on List<Pointer<Point>>, provided by the PointBatchExt extension

Translates all points in the list by dx and dy.