rLineTo

fun rLineTo(dx: Float, dy: Float): Path

Adds line from last point to vector (dx, dy). If Path is empty, or last PathVerb is PathVerb.CLOSE, last point is set to (0, 0) before adding line.

Appends PathVerb.MOVE to verb array and (0, 0) to Point array, if needed; then appends PathVerb.LINE to verb array and line end to Point array.

Line end is last point plus vector (dx, dy).

Function name stands for "relative line to".

Return

reference to Path

Parameters

dx

offset from last point to line end on x-axis

dy

offset from last point to line end on y-axis

See also