Learn R Programming

RConics (version 1.1.2)

ellipseToConicMatrix: Transformation of the ellipse parameters into the matrix representation

Description

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.

Usage

ellipseToConicMatrix(saxes = c(1, 1), loc = c(0, 0), theta = 0)

Value

A \((3 \times 3)\) matrix that represents the ellipse.

Arguments

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).

See Also

conicMatrixToEllipse

Examples

Run this code
# Ellipse parameters
saxes <- c(5,2)
loc <- c(0,0)
theta <- pi/4
# Matrix representation of the ellipse
C <- ellipseToConicMatrix(saxes,loc,theta)

Run the code above in your browser using DataLab