Creates a Path2 object from the starting 2D coordinates x and y.
the starting points x value
the starting points y value
If the path start and end point are the same
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.
middle point x value
middle point y value
end point x value
end point y value
(default: 36)
the updated Path2.
Adds a new segment until the given coordinates (x, y) to the current Path2.
the added points x value
the added points y value
the updated Path2.
Closes the Path2.
the Path2.
Retreives the point at the distance aways from the starting point
the length along the path to retreive the point from
a new Vector2 located at a percentage of the Path2 total length on this path.
Gets the points which construct the path
the Path2 internal array of points.
Gets the sum of the distance between each sequential point in the path
the Path2 total length (float).
Creates a new path starting from an x and y position
starting x value
starting y value
a new Path2 starting at the coordinates (x, y).
Represents a 2D path made up of multiple 2D points