tangent Arc To
Appends arc to Path, after appending line if needed. Arc is implemented by conic weighted to describe part of circle. Arc is contained by tangent from last Path point to (x1, y1), and tangent from (x1, y1) to (x2, y2). Arc is part of circle sized to radius, positioned so it touches both tangent lines.
If last Path Point does not start Arc, tangentArcTo appends connecting Line to Path. The length of Vector from (x1, y1) to (x2, y2) does not affect Arc.
Arc sweep is always less than 180 degrees. If radius is zero, or if tangents are nearly parallel, tangentArcTo appends Line from last Path Point to (x1, y1).
tangentArcTo appends at most one Line and one conic.
tangentArcTo implements the functionality of PostScript arct and HTML Canvas tangentArcTo.
Return
reference to Path
Parameters
x-axis value common to pair of tangents
y-axis value common to pair of tangents
x-axis value end of second tangent
y-axis value end of second tangent
distance from arc to circle center
See also
Appends arc to Path, after appending line if needed. Arc is implemented by conic weighted to describe part of circle. Arc is contained by tangent from last Path point to p1, and tangent from p1 to p2. Arc is part of circle sized to radius, positioned so it touches both tangent lines.
If last Path Point does not start arc, tangentArcTo() appends connecting line to Path. The length of vector from p1 to p2 does not affect arc.
Arc sweep is always less than 180 degrees. If radius is zero, or if tangents are nearly parallel, tangentArcTo() appends line from last Path Point to p1.
tangentArcTo() appends at most one line and one conic.
tangentArcTo() implements the functionality of PostScript arct and HTML Canvas tangentArcTo.
Return
reference to Path
Parameters
Point common to pair of tangents
end of second tangent
distance from arc to circle center