ellipticalArcTo

fun ellipticalArcTo(rx: Float, ry: Float, xAxisRotate: Float, arc: PathEllipseArc, direction: PathDirection, x: Float, y: Float): Path

Appends arc to Path. Arc is implemented by one or more conics weighted to describe part of oval with radii (rx, ry) rotated by xAxisRotate degrees. Arc curves from last Path Point to (x, y), choosing one of four possible routes: clockwise or counterclockwise, and smaller or larger.

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

ellipticalArcTo() appends up to four conic curves.

ellipticalArcTo() 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 on x-axis before x-axis rotation

ry

radius on y-axis 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

x

end of arc

y

end of arc


fun ellipticalArcTo(r: Point, xAxisRotate: Float, arc: PathEllipseArc, direction: PathDirection, xy: Point): Path

Appends arc to Path. Arc is implemented by one or more conic weighted to describe part of oval with radii (r.fX, r.fY) rotated by xAxisRotate degrees. Arc curves from last Path Point to (xy.fX, xy.fY), choosing one of four possible routes: clockwise or counterclockwise, and smaller or larger.

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

ellipticalArcTo() appends up to four conic curves.

ellipticalArcTo() 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

r

radii on axes 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

xy

end of arc