toosoon-utils
Version:
Utility functions & classes
20 lines (19 loc) • 767 B
TypeScript
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: number, cy: number, radius: number, startAngle?: number, endAngle?: number, counterclockwise?: boolean);
}