rEllipticalArcTo

fun rEllipticalArcTo(rx: Float, ry: Float, xAxisRotate: Float, arc: PathEllipseArc, direction: PathDirection, dx: Float, dy: Float): Path

Appends arc to Path, relative to last Path Point. Arc is implemented by one or more conic, weighted to describe part of oval with radii (rx, ry) rotated by xAxisRotate degrees. Arc curves from last Path Point to relative end Point: (dx, dy), choosing one of four possible routes: clockwise or counterclockwise, and smaller or larger. If Path is empty, the start arc Point is (0, 0).

Arc sweep is always less than 360 degrees. rEllipticalArcTo() appends line to end Point if either radii are zero, or if last Path Point equals end Point. rEllipticalArcTo() scales radii (rx, ry) to fit last Path Point and end Point if both are greater than zero but too small to describe an arc.

rEllipticalArcTo() appends up to four conic curves.

rEllipticalArcTo() implements the functionality of svg arc, although SVG "sweep-flag" value is opposite the integer value of sweep; SVG "sweep-flag" uses 1 for clockwise, while PathDirection.CLOCKWISE cast to int is zero.

Return

reference to Path

Parameters

rx

radius before x-axis rotation

ry

radius before x-axis rotation

xAxisRotate

x-axis rotation in degrees; positive values are clockwise

arc

chooses smaller or larger arc

direction

chooses clockwise or counterclockwise arc

dx

x-axis offset end of arc from last Path Point

dy

y-axis offset end of arc from last Path Point