AffineMappingEllipse2Ellipse: Affine transformation mapping a given ellipse to a given...

View source: R/Affine.R

AffineMappingEllipse2EllipseR Documentation

Affine transformation mapping a given ellipse to a given ellipse

Description

Return the affine transformation which transforms ell1 to ell2.

Usage

AffineMappingEllipse2Ellipse(ell1, ell2)

Arguments

ell1, ell2

Ellipse or Circle objects

Value

An Affine object.

Examples

ell1 <- Ellipse$new(c(1,1), 5, 1, 30)
( ell2 <- Ellipse$new(c(4,-1), 3, 2, 50) )
f <- AffineMappingEllipse2Ellipse(ell1, ell2)
f$transformEllipse(ell1) # should be ell2

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