pub struct Ellipse { /* private fields */ }
Expand description

The representation of a ellipse.

Implementations

Create a new ellipse with the coefficient of equation.

A x^2 + B y^2 + C xy + D x + E y + F = 0

Create a new ellipse with the center and the two axes and .

Create a new ellipse with 5 points.

Return the center of the ellipse.

Get the minor axis of the ellipse.

Get the major delta of the ellipse.

\Delta =
\begin{vmatrix}
A & B & D \\
B & C & E \\
D & E & F \\
\end{vmatrix}
= ACF+2BDE-AE^2-CD^2-FB^2

Get the minor delta of the ellipse.

\delta =
\begin{vmatrix}
A & B \\
B & C \\
\end{vmatrix}
= AC - B^2

Get the rotation of the ellipse.

\alpha=
\begin{cases}
\dfrac{1}{2}\arctan\dfrac{B}{A-C} &,  A \ne C\\
\dfrac{\pi}{4} &, A = C\\
\end{cases}

Get the center of the ellipse.

Return the parameters.

Ax^2+2Bxy+Cy^2+2Dx+2Ey+F=0

Get the parameter of the ellipse.

Q = \begin{bmatrix}
A & B & D \\
B & C & E \\
D & E & F \\
\end{bmatrix}

Return the major axis of the ellipse.

Return the major axis of the ellipse.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.