VEllipse
VEllipse
Readonly
classRequired to generate proper CSS classes and other class related IDs.
isDestroyed
VEllipse
VEllipse
Readonly
uidThe UID of this drawable object.
VEllipse
Static
utilsA 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).
polarToCartesian
The outlont point in absolute x-y-coordinates.
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.
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
length: number[optional, default=1] The length of the returned vector.
normalAt
VEllipse
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
length: number[optional, default=1] The length of the returned vector.
tangentAt
VEllipse
Convert this ellipse into cubic Bézier curves.
Optional
quarterSegmentCount: numberThe number of segments per base elliptic quarter (default is 3, min is 1).
Optional
threshold: numberThe 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.
Classdesc
An ellipse class based on two vertices [centerX,centerY] and [radiusX,radiusY].
Requires
SVGSerializable
Requires
UID
Requires
UIDGenerator
Requires
Vertex