Adds numberOfSegments segments according to the arc definition (middle point coordinates, end point coordinates, the arc start point being the current Path2 last point) to the current Path2. Returns the updated Path2.
Adds a new segment until the given coordinates (x, y) to the current Path2. Returns the updated Path2.
Closes the Path2. Returns the Path2.
Returns a new Vector2 located at a percentage of the Path2 total length on this path.
Returns the Path2 internal array of points.
Returns the Path2 total length (float).
Returns a new Path2 starting at the coordinates (x, y).
Generated using TypeDoc
Creates a Path2 object from the starting 2D coordinates x and y.