GeneralPath

A type alias: another name for the type it stands for.

Methods

MethodReturnsDescription
new()GeneralPath() -> GeneralPath: An empty non-zero path.
new(Shape)GeneralPath

Returned by

MethodReturnsDescription
GeneralPathClass.newGeneralPath() -> GeneralPath: An empty non-zero path.
GeometryClass.clipPathGeneralPathThe parts of path inside shape: lines outside it dropped, lines crossing its edge cut there.
GeometryClass.filterPathGeneralPathpath 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…
GeometryClass.splitIntoSegmentsGeneralPathpath with every line cut into pieces segmentLength long (the last one what is left). A result of more than 1048576 segments raises `Out…
GeometryClass.transformPathGeneralPathpath with every point moved by method(coords), which changes the 1-based array {x, y} it is handed (coords[1] = x); index 0 raises.…
PerspectiveClass.localPathToCanvasGeneralPathAlternative to Geometry.filterPath keeping the lines whose ends both project, then Geometry.transformPath moving each point to its `loc…
PerspectiveClass.worldPathToLocalGeneralPathAlternative to Geometry.transformPath moving each point to its LocalPoint.fromWorld less LOCAL_TILE_SIZE / 2 on each axis, a plugin's…

Method details

new

new: (() -> GeneralPath) & ((Shape) -> GeneralPath)

() -> GeneralPath: An empty non-zero path.

(Shape) -> GeneralPath: The outline of s, under its winding rule.