ellipseToConicMatrix: Transformation of the ellipse parameters into the matrix...

View source: R/ellipseToConicMatrix.R

ellipseToConicMatrixR Documentation

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)

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

Value

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

See Also

conicMatrixToEllipse

Examples

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

RConics documentation built on March 18, 2022, 5:33 p.m.