UNPKG

toosoon-utils

Version:
22 lines (21 loc) 804 B
import EllipseCurve from './EllipseCurve'; /** * Utility class for manipulating arcs * * @exports * @class ArcCurve * @extends Curve */ export default class ArcCurve extends EllipseCurve { /** * @param {number} cx X-axis coordinate of the center of the circle * @param {number} cy Y-axis coordinate of the center of the circle * @param {number} radius Radius of the circle * @param {number} [startAngle] Rotation angle of the arc (in radians) * @param {number} [endAngle] Rotation angle of the arc (in radians) * @param {boolean} [counterclockwise] Flag indicating the direction of the arc */ constructor(cx, cy, radius, startAngle, endAngle, counterclockwise) { super(cx, cy, radius, radius, 0, startAngle, endAngle, counterclockwise); } }