Class: DefEllipse

algeobra~DefEllipse(params, centeropt, rxopt, ryopt, startAngleopt, endAngleopt, rotationopt)

Definition of an ellipse

Constructor

new DefEllipse(params, centeropt, rxopt, ryopt, startAngleopt, endAngleopt, rotationopt)

Default values
Parameters:
Name Type Attributes Default Description
params Object
center Object <optional>
{x:0,y:0} The center
rx Number <optional>
1 The x-exxentricity
ry Number <optional>
1 The y-exxentricity
startAngle Number <optional>
0 The starting angle
endAngle Number <optional>
2.0 * Math.PI The end angle
rotation Number <optional>
0 The rotation angle of the ellipse
Source:

Methods

compute(info) → {Object}

Compute the ellipse
Parameters:
Name Type Description
info CreateInfo The creation info
Source:
Returns:
The ellipse of type TYPE_ELLIPSE
Type
Object

(static) fromValues(params) → {CreateInfo}

Create an ellipse from individual values
Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Description
center Number | Object <optional>
Either the index or value of a TYPE_POINT. The center
rx Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The x-eccentricity
ry Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The y-eccentricity
startAngle Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The starting angle
endAngle Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The end angle
rotation Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The ellipse rotation
Source:
Returns:
The creation info
Type
CreateInfo