Required to generate proper CSS classes and other class related IDs.
The UID of this drawable object.
Clone this ellipse (deep clone).
A copy of this ellipse.s
This function should invalidate any installed listeners and invalidate this object. After calling this function the object might not hold valid data any more and should not be used.
Get equally distributed points on the outline of this ellipse.
The number of points.
Get the normal vector at the given angle. The normal vector is the vector that intersects the ellipse in a 90 degree angle at the given point (speicified by the given angle).
Length of desired normal vector can be specified, default is 1.0.
The angle to get the normal vector at.
[optional, default=1] The length of the returned vector.
Get the perimeter of this ellipse.
Get the non-negative horizonal radius of this ellipse.
The unsigned horizontal radius of this ellipse.
Get the non-negative vertical radius of this ellipse.
The unsigned vertical radius of this ellipse.
Rotate this ellipse around its center.
The angle to rotate by.
this for chaining.
Scale this ellipse by the given factor from the center point. The factor will be applied to both radii.
The factor to scale by.
this for chaining.
Get the signed horizonal radius of this ellipse.
The signed horizontal radius of this ellipse.
Get the signed vertical radius of this ellipse.
The signed vertical radius of this ellipse.
Get the tangent vector at the given angle. The tangent vector is the vector that touches the ellipse exactly at the given given point (speicified by the given angle).
Note that the tangent is just 90 degree rotated normal vector.
Length of desired tangent vector can be specified, default is 1.0.
The angle to get the tangent vector at.
[optional, default=1] The length of the returned vector.
Convert this ellipse into cubic Bézier curves.
The number of segments per base elliptic quarter (default is 3, min is 1).
The Bézier threshold (default value 0.666666 approximates the ellipse with best results but you might wish to use other values)
An array of cubic Bézier curves representing this ellipse.
Get the vertex on the ellipse's outline at the given angle.
The angle to determine the vertex at.
The vertex on the outline at the given angle.
A static collection of ellipse-related helper functions.
Get n equidistant points on the elliptic arc.
Get the theta
for a given phi
(used to determine equidistant points on ellipse).
theta
Calculate a particular point on the outline of the given ellipse (center plus two radii plus angle).
The x coordinate of the elliptic center.
The y coordinate of the elliptic center.
The horizontal radius of the ellipse.
The vertical radius of the ellipse.
The angle (in radians) to get the desired outline point for.
Generated using TypeDoc
An ellipse class based on two vertices [centerX,centerY] and [radiusX,radiusY].
SVGSerializable
UID
UIDGenerator
Vertex