EllipseFromEquation: Ellipse from its implicit equation

View source: R/Ellipse.R

EllipseFromEquationR Documentation

Ellipse from its implicit equation

Description

Return an ellipse from the coefficients of its implicit equation.

Usage

EllipseFromEquation(A, B, C, D, E, F)

Arguments

A, B, C, D, E, F

the coefficients of the equation

Details

The implicit equation of the ellipse is Ax² + Bxy + Cy² + Dx + Ey + F = 0. This function returns the ellipse given A, B, C, D, E and F.

Value

An Ellipse object.

Examples

ell <- Ellipse$new(c(2,3), 5, 4, 30)
cf <- ell$equation()
ell2 <- EllipseFromEquation(cf[1], cf[2], cf[3], cf[4], cf[5], cf[6])
ell$isEqual(ell2)

PlaneGeometry documentation built on Aug. 10, 2023, 1:09 a.m.