View source: R/ellipseToConicMatrix.R
ellipseToConicMatrix | R Documentation |
Transformation of the ellipse parameters (Cartesian coordinates of the ellipse center, length of the semi-axes and angle of rotation) into the (3 \times 3) into the matrix representation of conics.
ellipseToConicMatrix(saxes = c(1, 1), loc = c(0, 0), theta = 0)
saxes |
a (2 \times 1) vector of the length of the ellipse semi-axes. |
loc |
a (2 \times 1) vector of the Cartesian coordinates of the ellipse center. |
theta |
the angle of rotation of the ellipse (in radians). |
A (3 \times 3) matrix that represents the ellipse.
conicMatrixToEllipse
# Ellipse parameters saxes <- c(5,2) loc <- c(0,0) theta <- pi/4 # Matrix representation of the ellipse C <- ellipseToConicMatrix(saxes,loc,theta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.