tangentArcTo

fun tangentArcTo(x1: Float, y1: Float, x2: Float, y2: Float, radius: Float): PathBuilder

Appends arc to path, after appending line if needed. Arc is contained by tangent from last point to (x1, y1), and tangent from (x1, y1) to (x2, y2).

Return

this builder for chaining

Parameters

x1

x-axis value common to pair of tangents

y1

y-axis value common to pair of tangents

x2

x-axis value end of second tangent

y2

y-axis value end of second tangent

radius

distance from arc to circle center


fun tangentArcTo(p1: Point, p2: Point, radius: Float): PathBuilder

Appends arc to path, after appending line if needed.

Return

this builder for chaining

Parameters

p1

point common to pair of tangents

p2

end of second tangent

radius

distance from arc to circle center