quadTo

fun quadTo(x1: Float, y1: Float, x2: Float, y2: Float): Path

Adds quad from last point towards (x1, y1), to (x2, y2). If Path is empty, or last PathVerb is PathVerb.CLOSE, last point is set to (0, 0) before adding quad.

Appends PathVerb.MOVE to verb array and (0, 0) to Point array, if needed; then appends PathVerb.QUAD to verb array; and (x1, y1), (x2, y2) to Point array.

Return

reference to Path

Parameters

x1

control Point of quad on x-axis

y1

control Point of quad on y-axis

x2

end Point of quad on x-axis

y2

end Point of quad on y-axis

See also


fun quadTo(p1: Point, p2: Point): Path

Adds quad from last point towards Point p1, to Point p2.

If Path is empty, or last PathVerb is PathVerb.CLOSE, last point is set to (0, 0) before adding quad.

Appends PathVerb.MOVE to verb array and (0, 0) to Point array, if needed; then appends PathVerb.QUAD to verb array; and Point p1, p2 to Point array.

Return

reference to Path

Parameters

p1

control Point of added quad

p2

end Point of added quad