clipPath
clipPath: (GeneralPath, Shape) -> GeneralPathThe parts of path inside shape: lines outside it dropped, lines crossing its edge cut there.
| Method | Returns | Description |
|---|---|---|
clipPath(GeneralPath, Shape) | GeneralPath | The parts of path inside shape: lines outside it dropped, lines crossing its edge cut there. |
filterPath(GeneralPath, ({number}, {number}) -> boolean) | GeneralPath | path without the lines method(from, to) answers false for. Each end is a 1-based array {x, y} (from[1], from[2]), and index 0 rai… |
splitIntoSegments(GeneralPath, number) | GeneralPath | path with every line cut into pieces segmentLength long (the last one what is left). A result of more than 1048576 segments raises `Out… |
transformPath(GeneralPath, ({number}) -> ()) | GeneralPath | path with every point moved by method(coords), which changes the 1-based array {x, y} it is handed (coords[1] = x); index 0 raises.… |
clipPathclipPath: (GeneralPath, Shape) -> GeneralPathThe parts of path inside shape: lines outside it dropped, lines crossing its edge cut there.
filterPathfilterPath: (GeneralPath, ({number}, {number}) -> boolean) -> GeneralPathpath without the lines method(from, to) answers false for. Each end is a 1-based array {x, y} (from[1], from[2]), and index 0 raises.
splitIntoSegmentssplitIntoSegments: (GeneralPath, number) -> GeneralPathpath with every line cut into pieces segmentLength long (the last one what is left). A result of more than 1048576 segments raises OutOfMemoryError before it is built.
transformPathtransformPath: (GeneralPath, ({number}) -> ()) -> GeneralPathpath with every point moved by method(coords), which changes the 1-based array {x, y} it is handed (coords[1] = x); index 0 raises. A function that converts world tiles to local units (LocalPoint.fromWorld less half a tile) is Perspective.worldPathToLocal(client, path), in one pass with no Luau per point.